/* Events Task Manager - Abu Dhabi Government Theme */

:root {
    /* Abu Dhabi Government Red & Gold Theme */
    --primary-burgundy: #c8102e;
    --secondary-burgundy: #9e0b23;
    --accent-gold: #d4af37;
    --light-burgundy: #fff5f7;
    --hover-gold: #b8982f;

    /* Team Colors */
    --logistics-color: #c8102e;
    --protocol-color: #d4af37;
    --catering-color: #38a169;

    /* Status Colors */
    --status-pending: #dd6b20;
    --status-progress: #3182ce;
    --status-completed: #38a169;
    --status-overdue: #e53e3e;

    /* Priority Colors */
    --priority-high: #e53e3e;
    --priority-medium: #dd6b20;
    --priority-low: #718096;

    /* Base Colors */
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #f5f6f6;
    --gray-200: #f0f0f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #444;
    --gray-700: #262626;
    --gray-800: #1a202c;
    --success: #38a169;
    --success-light: #c6f6d5;
    --warning: #dd6b20;
    --warning-light: #feebc8;
    --danger: #e53e3e;
    --danger-light: #fed7d7;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Better mobile scrolling */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Prevent text size adjustment on iOS */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

body {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        position: relative;
        width: 100%;
    }

    /* Improve touch scrolling performance */
    .content,
    .table-container,
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    color: var(--gray-700);
    position: fixed;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar.hidden {
    transform: translateX(280px);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .sidebar-overlay {
        display: block;
    }
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--gray-800);
}

.sidebar-header .subtitle {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Navigation */
.nav-links {
    padding: 15px 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
    border-right: 3px solid transparent;
}

.nav-links a:hover {
    background: var(--gray-50);
    color: var(--primary-burgundy);
}

.nav-links a.active {
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.08));
    color: var(--primary-burgundy);
    border-right-color: var(--primary-burgundy);
    font-weight: 600;
}

.nav-links i {
    margin-left: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.sidebar-footer-logo {
    width: 80px;
    height: auto;
    opacity: 0.6;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-right: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.search-box {
    position: relative;
    width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-600);
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.notification-icon:hover {
    color: white;
    background: var(--primary-burgundy);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.notification-icon:hover i {
    animation: bellRing 0.5s ease;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

.notification-icon:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4);
    animation: pulse 2s infinite;
    border: 2px solid white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(229, 62, 62, 0.6);
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.menu-toggle {
    display: none;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 10px 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.menu-toggle:hover {
    background: var(--primary-burgundy);
    color: white;
    border-color: var(--primary-burgundy);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle:hover i {
    transform: rotate(90deg);
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px;
}

/* Section Containers */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
    min-height: 40px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Icon animation */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-gold,
    .btn-secondary {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-action {
        min-width: 42px;
        min-height: 42px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--secondary-burgundy) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
    background: linear-gradient(135deg, #d41232 0%, #a80c20 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--hover-gold) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #dcb740 0%, #c0a032 100%);
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 161, 105, 0.4);
    background: linear-gradient(135deg, #48b77d 0%, #2f855a 100%);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
    background: linear-gradient(135deg, #f44444 0%, #c53030 100%);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button disabled state */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon.burgundy {
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-burgundy);
}

.stat-icon.gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.stat-icon.green {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
}

.stat-icon.red {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger);
}

.stat-icon.blue {
    background: rgba(49, 130, 206, 0.1);
    color: var(--status-progress);
}

.stat-details h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.stat-details p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-burgundy);
}

/* Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: relative;
}

/* Scrollbar styling for better UX */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-burgundy);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-burgundy);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: var(--gray-50);
}

th {
    padding: 15px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

td {
    padding: 15px;
    text-align: right;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

tr:hover {
    background: var(--gray-50);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--status-pending);
}

.status-badge.in-progress {
    background: rgba(49, 130, 206, 0.1);
    color: var(--status-progress);
}

.status-badge.completed {
    background: var(--success-light);
    color: var(--status-completed);
}

.status-badge.overdue {
    background: var(--danger-light);
    color: var(--status-overdue);
}

.status-badge.planned {
    background: rgba(49, 130, 206, 0.1);
    color: var(--status-progress);
}

.status-badge.ongoing {
    background: var(--warning-light);
    color: var(--status-pending);
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.priority-badge.high {
    background: var(--danger-light);
    color: var(--priority-high);
}

.priority-badge.medium {
    background: var(--warning-light);
    color: var(--priority-medium);
}

.priority-badge.low {
    background: rgba(113, 128, 150, 0.1);
    color: var(--priority-low);
}

/* Team Badges */
.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.team-badge.logistics {
    background: rgba(200, 16, 46, 0.1);
    color: var(--logistics-color);
}

.team-badge.protocol {
    background: rgba(212, 175, 55, 0.1);
    color: var(--protocol-color);
}

.team-badge.catering {
    background: rgba(56, 161, 105, 0.1);
    color: var(--catering-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-100);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-action:active::before {
    width: 200px;
    height: 200px;
}

.btn-action:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action:active {
    transform: translateY(0) scale(1);
}

.btn-action i {
    transition: transform 0.3s ease;
}

.btn-action:hover i {
    transform: scale(1.2) rotate(5deg);
}

.btn-action.view {
    color: var(--status-progress);
    background: rgba(49, 130, 206, 0.1);
}

.btn-action.view:hover {
    background: rgba(49, 130, 206, 0.2);
    color: #2b6cb0;
}

.btn-action.call {
    color: var(--success);
    background: rgba(56, 161, 105, 0.1);
}

.btn-action.call:hover {
    background: rgba(56, 161, 105, 0.2);
    color: #2f855a;
}

.btn-action.call:hover i {
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.btn-action.whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.btn-action.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #1da851;
}

.btn-action.whatsapp:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.btn-action.edit {
    color: var(--warning);
    background: rgba(221, 107, 32, 0.1);
}

.btn-action.edit:hover {
    background: rgba(221, 107, 32, 0.2);
    color: #c05621;
}

.btn-action.delete {
    color: var(--danger);
    background: rgba(229, 62, 62, 0.1);
}

.btn-action.delete:hover {
    background: rgba(229, 62, 62, 0.2);
    color: #c53030;
}

.btn-action.delete:hover i {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    direction: rtl;
    -webkit-overflow-scrolling: touch;
}

/* Better modal on mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
        align-self: flex-end;
        margin: 0;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal-body {
        padding: 20px 15px;
        max-height: calc(92vh - 70px);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.close-modal {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.close-modal:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-body {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--secondary-burgundy) 100%);
    color: white;
}

.event-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-meta {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-body {
    padding: 20px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.event-info-item i {
    width: 20px;
    color: var(--primary-burgundy);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--catering-color) 100%);
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.team-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.team-header-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.team-stat {
    text-align: center;
}

.team-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 3px;
}

.team-stat-label {
    font-size: 12px;
    color: var(--gray-500);
}

.team-members {
    padding: 20px 25px;
}

.team-members h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.member-item:last-child {
    border-bottom: none;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.member-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.member-role {
    font-size: 12px;
    color: var(--gray-500);
}

.member-contact {
    font-size: 12px;
    color: var(--gray-600);
}

.member-actions {
    display: flex;
    gap: 8px;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Activity Log */
.activity-log {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
}

.activity-timeline {
    position: relative;
    padding-right: 30px;
}

.activity-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item::before {
    content: '';
    position: absolute;
    right: -22px;
    top: 30px;
    width: 2px;
    height: calc(100% + 10px);
    background: var(--gray-200);
}

.activity-item:last-child::before {
    display: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.activity-icon.created {
    background: rgba(49, 130, 206, 0.1);
    color: var(--status-progress);
}

.activity-icon.updated {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning);
}

.activity-icon.completed {
    background: var(--success-light);
    color: var(--success);
}

.activity-icon.assigned {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.activity-details {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 5px;
}

.activity-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.activity-time {
    font-size: 12px;
    color: var(--gray-500);
}

.activity-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.report-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.report-icon.pdf {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger);
}

.report-icon.excel {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
}

.report-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.report-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Notifications Panel */
.notifications-panel {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
}

.notification-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(200, 16, 46, 0.05);
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-item-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.notification-item-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.notification-item-icon.info {
    background: rgba(49, 130, 206, 0.1);
    color: var(--status-progress);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 3px;
}

.notification-text {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-500);
}

/* Urgent Tasks Section */
.urgent-tasks {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.05) 0%, rgba(221, 107, 32, 0.05) 100%);
    border: 2px solid var(--danger);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.urgent-tasks h3 {
    color: var(--danger);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgent-task-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.urgent-task-item:last-child {
    margin-bottom: 0;
}

.urgent-task-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.urgent-task-meta {
    font-size: 13px;
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(280px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        width: 300px;
    }

    .events-grid,
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .header {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-right {
        flex-direction: row;
        justify-content: space-between;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .content {
        padding: 15px 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
        flex: 1;
    }

    .filter-group input,
    .filter-group select {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    /* Make tables scrollable horizontally */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .data-table {
        min-width: 800px;
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .action-buttons {
        flex-direction: row;
        gap: 5px;
    }

    .btn-action {
        padding: 6px 8px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 20px auto;
        padding: 20px 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-card {
        padding: 20px;
    }

    .event-card {
        padding: 15px;
    }

    .event-card-header h3 {
        font-size: 16px;
    }

    .event-info-item {
        font-size: 13px;
    }

    .event-card-footer {
        flex-direction: column;
        gap: 8px;
    }

    .event-card-footer button {
        width: 100%;
    }

    /* Teams grid improvements */
    .team-card {
        padding: 15px;
    }

    .team-header h2 {
        font-size: 18px;
    }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Charts improvements */
    .charts-grid {
        gap: 15px;
    }

    .chart-card {
        padding: 15px;
    }

    /* Activity log */
    .activity-item {
        padding: 12px;
    }

    /* Urgent tasks */
    .urgent-tasks {
        padding: 15px;
    }

    .urgent-task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .urgent-task-actions {
        width: 100%;
    }

    /* Form improvements */
    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    /* Notification badge */
    .notification-badge {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 18px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
    }

    .stat-content {
        text-align: right;
    }

    .stat-icon {
        margin-left: 0;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    /* Buttons */
    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-gold {
        padding: 10px 15px;
        font-size: 13px;
        width: 100%;
    }

    /* Sidebar improvements */
    .sidebar {
        width: 260px;
    }

    .sidebar.hidden {
        transform: translateX(260px);
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-logo {
        width: 32px;
        height: 32px;
    }

    .sidebar-title h2 {
        font-size: 16px;
    }

    .nav-links a {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Event cards */
    .event-name-en {
        font-size: 11px;
    }

    .event-info-item {
        font-size: 12px;
    }

    .event-info-item i {
        font-size: 12px;
        min-width: 16px;
    }

    /* Modal improvements for small screens */
    .modal-content {
        border-radius: 12px;
        max-height: 85vh;
    }

    .modal-body {
        max-height: calc(85vh - 100px);
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    /* Team member cards on mobile */
    .member-item {
        padding: 10px;
    }

    .member-name {
        font-size: 14px;
    }

    .member-role {
        font-size: 11px;
    }

    .member-actions .btn-action {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Activity log mobile */
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .activity-user {
        font-size: 13px;
    }

    .activity-description {
        font-size: 12px;
    }

    .activity-time {
        font-size: 11px;
    }

    /* Reports on mobile */
    .report-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .report-card h3 {
        font-size: 16px;
    }

    .report-card p {
        font-size: 12px;
    }

    /* Notification items */
    .notification-item {
        padding: 10px;
    }

    .notification-item-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-text {
        font-size: 12px;
    }

    /* Info grid in modals */
    .info-label {
        font-size: 12px;
    }

    .info-value {
        font-size: 13px;
    }

    /* Progress bars */
    .progress-bar {
        height: 6px;
    }

    .progress-text {
        font-size: 11px;
    }

    /* Menu toggle button improvements */
    .menu-toggle {
        padding: 8px 12px;
        font-size: 18px;
    }

    /* User info in header */
    .user-info {
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .content {
        padding: 10px 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-value {
        font-size: 20px;
    }

    .page-title {
        font-size: 16px;
    }

    .modal-content {
        width: 98%;
        padding: 15px 10px;
    }

    .data-table {
        font-size: 11px;
    }

    .btn-action {
        padding: 5px 6px;
        font-size: 11px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-600);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-burgundy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.hidden { display: none; }
