* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E88E5;
    --dark-blue: #0D47A1;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #212121;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

body {
    font-family: 'Arial', 'Segoe UI', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== التخطيط العام ========== */
.hidden {
    display: none !important;
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.main-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-gray);
}

.main-screen.hidden {
    display: none;
}

/* ========== نموذج تسجيل الدخول ========== */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.logo-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.logo-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.logo-header p {
    color: var(--text-light);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.forgot-password {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.test-accounts {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 13px;
}

.test-accounts h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.test-accounts p {
    margin: 5px 0;
}

/* ========== الأزرار ========== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background-color: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-dark);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.logout-btn {
    margin-top: 20px;
}

/* ========== رأس الصفحة ========== */
.top-bar {
    background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 15px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
    font-size: 20px;
    margin: 0;
}

.header-center {
    text-align: center;
}

.header-center h2 {
    font-size: 24px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.notification-icon {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.notification-icon:hover {
    transform: scale(1.2);
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.user-name {
    font-weight: 600;
    color: white;
    min-width: 100px;
}

/* ========== المحتوى الرئيسي ========== */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-section {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}

/* ========== لوحة التحكم ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
}

.stats-card h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
}

/* ========== قسم مراقبة الحركة الجوية ========== */
.atc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.radar-section,
.flights-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.radar-section h3,
.flights-info h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 16px;
}

.radar {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.radar-stats {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
}

.tracking-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tracking-section h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 16px;
}

/* ========== إدارة الرحلات ========== */
.flights-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.form-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.form-section.hidden {
    display: none;
}

.form-section h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.flights-table {
    overflow-x: auto;
}

.flights-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.flights-table th {
    background: var(--dark-blue);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.flights-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.flights-table tr:hover {
    background: var(--light-gray);
}

.flight-actions {
    display: flex;
    gap: 10px;
}

/* ========== قائمة العناصر ========== */
.list-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.list-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    transition: background-color 0.3s;
}

.list-item:hover {
    background-color: var(--light-gray);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

.list-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

/* ========== قسم المجتمع ========== */
.post-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.post-section h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.post-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-section {
    margin-bottom: 20px;
}

.posts-feed {
    margin-top: 20px;
}

.post-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--primary-blue);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.post-author {
    font-weight: 600;
    color: var(--text-dark);
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.post-interactions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.interaction-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s;
}

.interaction-btn:hover {
    color: var(--primary-blue);
}

/* ========== إدارة الأعضاء ========== */
.members-controls {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 15px;
    margin-bottom: 20px;
}

.members-controls input,
.members-controls select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.members-table {
    overflow-x: auto;
}

.members-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.members-table th {
    background: var(--dark-blue);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.members-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.members-table tr:hover {
    background: var(--light-gray);
}

.member-actions {
    display: flex;
    gap: 8px;
}

/* ========== نمط مخصص للقوائم ========== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    border-right: 4px solid var(--primary-blue);
}

.list-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.list-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-pending {
    background: #FFE0B2;
    color: #E65100;
}

/* ========== أنماط المنشورات المتقدمة ========== */
.post-card {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-right: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-author {
    font-weight: 600;
    color: var(--dark-blue);
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-interactions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.interaction-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.interaction-btn:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* ========== نمط قائمة التنقل الجانبية ========== */
.sidebar-nav {
    display: flex;
    gap: 0;
    background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 0;
    border-bottom: 3px solid var(--primary-blue);
    overflow-x: auto;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    height: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

.nav-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
}

/* ========== أنماط الأقسام المنعزلة ========== */
.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
    padding: 20px;
}

.dashboard-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== التخطيط المحسّن ========== */
.main-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* ========== تحسينات المحمول ========== */
@media (max-width: 768px) {
    .sidebar-nav {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 10px;
        font-size: 12px;
    }

    .dashboard-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        overflow-x: auto;
    }

    .nav-btn {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* ========== أنماط الملف الشخصي ========== */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    font-size: 80px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.profile-role {
    margin: 0;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
}

.profile-email,
.profile-date {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ========== الإحصائيات الشخصية ========== */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    background: var(--light-gray);
    border-bottom: 2px solid var(--border-color);
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* ========== أقسام الملف الشخصي ========== */
.profile-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-section h3 {
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.bio-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.bio-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* ========== الإعدادات والمفاتيح ========== */
.settings-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-option:last-child {
    border-bottom: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ========== قائمة النشاط ========== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    border-right: 3px solid var(--primary-blue);
}

.activity-time {
    color: var(--text-light);
    font-size: 12px;
    min-width: 80px;
}

.activity-text {
    color: var(--text-dark);
    flex: 1;
    margin-right: 20px;
}

/* ========== أزرار العمليات ========== */
.profile-actions {
    padding: 30px;
    display: flex;
    gap: 12px;
}

.readonly-input {
    background: var(--light-gray);
    cursor: not-allowed;
    color: var(--text-light);
}

/* ========== واجهة المحمول ========== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .profile-info h2 {
        font-size: 20px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .profile-section {
        padding: 20px;
    }

/* ========== أنماط لوحة التحكم ========== */
.overview-section,
.goals-section,
.features-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overview-section h2,
.goals-section h2,
.features-section h2 {
    color: var(--dark-blue);
    margin-bottom: 25px;
    font-size: 24px;
    text-align: right;
}

/* ========== بطاقات النظرة العامة ========== */
.overview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.overview-card {
    padding: 20px;
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    border-radius: 10px;
    border-right: 4px solid var(--primary-blue);
    text-align: center;
}

.overview-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.overview-card h3 {
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-size: 18px;
}

.overview-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* ========== قائمة الأهداف ========== */
.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.goal-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    border-right: 4px solid var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.2);
}

.goal-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.goal-content h4 {
    color: var(--dark-blue);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.goal-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
}

/* ========== شبكة الميزات ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-box {
    padding: 25px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-box:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.15);
    transform: translateY(-5px);
}

.feature-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: var(--dark-blue);
    margin: 15px 0;
    font-size: 16px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ========== واجهة المحمول ========== */
@media (max-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr;
    }

    .goals-list {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .overview-section,
    .goals-section,
    .features-section {
        padding: 20px;
    }

    .goal-item {
        flex-direction: column;
        align-items: flex-start;
    }

/* ========== لوحة تحكم ATC ========== */
.atc-control-panel {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-right: 5px solid var(--primary-blue);
}

.atc-control-panel h3 {
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.flight-update-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.flight-update-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.flight-update-form .form-group {
    display: flex;
    flex-direction: column;
}

.flight-update-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 13px;
}

.flight-update-form input[type="text"],
.flight-update-form input[type="number"],
.flight-update-form select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.flight-update-form input:focus,
.flight-update-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.flight-update-form input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* ========== عناصر الفحص ========== */
.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#delayDurationGroup,
#delayReasonGroup {
    transition: all 0.3s ease;
}

#delayDurationGroup.show,
#delayReasonGroup.show {
    display: flex !important;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    flex: 1;
}

/* ========== معلومات الرحلات المتقدمة ========== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    border-right: 4px solid var(--primary-blue);
}

.list-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.list-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-pending {
    background: #FFE0B2;
    color: #E65100;
}

.status-delayed {
    background: #FFCDD2;
    color: #C62828;
}

.aircraft-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #E1F5FE;
    color: #01579B;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
}

/* ========== تصميم قسم طلب تتبع الرحلة ========== */
.tracking-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-right: 4px solid var(--primary-blue);
}

.tracking-section h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tracking-form .form-group {
    display: flex;
    flex-direction: column;
}

.tracking-form label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.tracking-form input,
.tracking-form textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.tracking-form input:focus,
.tracking-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.tracking-form input::placeholder,
.tracking-form textarea::placeholder {
    color: #999;
}

.tracking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.tracking-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.tracking-form .btn {
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.tracking-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1565C0 100%);
    color: white;
    flex: 1;
}

.tracking-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.tracking-form .btn-primary:active {
    transform: translateY(0);
}

.tracking-form .btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.tracking-form .btn-secondary:hover {
    background: #E8E8E8;
    border-color: var(--primary-blue);
}

/* ========== قسم قائمة طلبات التتبع ========== */
.requests-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-right: 4px solid #FF9800;
}

.requests-section h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.request-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5CC 100%);
    border: 2px solid #FFD54F;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.request-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.25);
    border-color: #FFA726;
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-card-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #E65100;
    margin: 0;
}

.request-status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #FFB74D;
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.request-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.request-card-label {
    color: #E65100;
    font-weight: 600;
}

.request-card-value {
    color: #333;
    text-align: left;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #FFE082;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #FF9800;
}

.request-card-date {
    font-weight: 500;
}

.view-details-link {
    color: #FF9800;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.view-details-link:hover {
    color: #E65100;
    text-decoration: underline;
}

/* ========== نافذة عرض التفاصيل (Modal) ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1565C0 100%);
    color: white;
    border-bottom: 2px solid #1565C0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3em;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.detail-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.detail-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-group label {
    display: block;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.detail-group p {
    color: #333;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 6px;
    border-right: 3px solid var(--primary-blue);
}

.modal-footer {
    padding: 20px 25px;
    background: #F5F5F5;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.95em;
}

/* ========== المظهر على الأجهزة الصغيرة ========== */
@media (max-width: 768px) {
    .flight-update-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .atc-control-panel {
        padding: 15px;
    }

    .flight-update-form {
        padding: 15px;
    }

    .tracking-form .form-row {
        grid-template-columns: 1fr;
    }

    .tracking-form .form-actions {
        flex-direction: column;
    }

    .tracking-form .btn {
        width: 100%;
    }

    .tracking-section {
        padding: 15px;
        border-right-width: 3px;
    }

    .tracking-section h3 {
        font-size: 1.1em;
    }
}
