:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary: #059669;
    --accent: #f59e0b;
    --bg-main: #f0fdfa;
    --bg-card: #ffffff;
    --text-dark: #134e4a;
    --text-medium: #5eead4;
    --shadow: 0 10px 40px rgba(8, 145, 178, 0.15);
    --shadow-hover: 0 20px 60px rgba(8, 145, 178, 0.25);
    --radius: 20px;
}


.service-icon.milk {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}


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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    overflow-x: hidden;
}

body.en {
    font-family: 'Inter', sans-serif;
    direction: ltr;
}

/* Language Toggle Button */
.lang-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lang-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(5, 150, 105, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

.header-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.header p {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 0 var(--radius) 0 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.service-icon.wash {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.service-icon.maintenance {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.service-icon.reports {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.service-icon.settings {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.coming-soon {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 15px;
    font-weight: 600;
}

/* Wash Page */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wash-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.wash-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.wash-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wash-header-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.wash-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* Incubator Info Card */
.incubator-info {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
    animation: slideUp 0.4s ease;
}

.incubator-info.show {
    display: block;
}

.incubator-info h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.incubator-info h4 svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

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

.info-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-item span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.info-item strong {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.info-item.warning strong {
    color: #dc2626;
}

.info-item.success strong {
    color: var(--secondary);
}

.days-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 5px;
}

.days-badge.danger {
    background: #fef2f2;
    color: #dc2626;
}

.days-badge.warning {
    background: #fffbeb;
    color: #d97706;
}

.days-badge.success {
    background: #f0fdf4;
    color: #16a34a;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Reports Styles */

.service-icon.dashboard {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

/* Wash Modal Styles */
.wash-modal {
    padding: 30px;
    max-width: 400px;
}

.wash-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.wash-modal-icon {
    width: 60px;
    height: 60px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    fill: white;
}

.wash-modal-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.wash-modal-info p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.wash-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.wash-modal-detail {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.wash-modal-detail span {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.wash-modal-detail strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.wash-modal .form-group {
    margin-bottom: 20px;
}

.wash-modal .modal-buttons {
    margin-top: 0;
}

.incubator-card.clickable {
    cursor: pointer;
}

.incubator-card.clickable:active {
    transform: scale(0.97);
}

@media (max-width: 480px) {
    .wash-modal {
        padding: 20px;
    }

    .wash-modal-icon {
        width: 50px;
        height: 50px;
    }

    .wash-modal-info h3 {
        font-size: 1.5rem;
    }
}

/* Dashboard Styles */
.dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
}

.dashboard-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-dot.green { background: #22c55e; }
.legend-dot.default { background: #f1f5f9; border: 1px solid #e2e8f0; }

.incubators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.incubator-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-right: 5px solid;
    border-left: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.en .incubator-card {
    border-right: none;
    border-left: 5px solid;
}

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

.incubator-icon {
    position: absolute;
    top: 12px;
    right: auto;
    left: 12px;
    width: 36px;
    height: 36px;
    opacity: 0.15;
}

body.en .incubator-icon {
    left: auto;
    right: 12px;
}

.incubator-card.green .incubator-icon { opacity: 0.25; }

.incubator-card.green { 
    border-color: #22c55e; 
}
.incubator-card.default { 
    border-color: #e2e8f0; 
}

body.en .incubator-card.green { 
    border-left-color: #22c55e; 
}
body.en .incubator-card.default { 
    border-left-color: #e2e8f0; 
}

.incubator-card.green::before { background: rgba(34, 197, 94, 0.08); }
.incubator-card.default::before { background: rgba(241, 245, 249, 0.5); }

.incubator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.incubator-code {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.incubator-dept {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.incubator-dept svg {
    width: 16px;
    height: 16px;
    fill: #94a3b8;
}

.incubator-wash {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.incubator-card.green .incubator-wash {
    background: #dcfce7;
    color: #16a34a;
}

.incubator-card.default .incubator-wash {
    background: #f1f5f9;
    color: #64748b;
}

.incubator-days {
    display: block;
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-legend {
        gap: 12px;
    }

    .incubators-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .incubator-card {
        padding: 16px;
    }

    .incubator-code {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .incubators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .incubator-card {
        padding: 14px;
    }

    .incubator-code {
        font-size: 1.3rem;
    }

    .incubator-dept {
        font-size: 0.85rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }
}

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

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.stat-info span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat-info strong {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.filter-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-section h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-grid .form-group {
    margin-bottom: 0;
}

.table-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.table-container h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.wash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.wash-table th,
.wash-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.wash-table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.wash-table td {
    color: #475569;
    font-size: 0.95rem;
}

.wash-table tbody tr:hover {
    background: #f0fdfa;
}

.wash-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wash-table .status-badge.good {
    background: #dcfce7;
    color: #16a34a;
}

.wash-table .status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.wash-table .status-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.wash-table .status-badge.never {
    background: #f1f5f9;
    color: #64748b;
}

.loading-cell {
    text-align: center !important;
    color: #94a3b8;
    padding: 40px !important;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-info strong {
        font-size: 1.3rem;
    }

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

    .table-container {
        padding: 15px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-spinner p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 50px 60px;
    border-radius: 24px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: pulse 1s ease-in-out;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-content p {
    color: #64748b;
    font-size: 1.1rem;
}

@keyframes pulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Password Modal */
.password-modal {
    padding: 40px 50px;
}

.password-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.password-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.password-input-container {
    margin: 25px 0;
}

.password-input-container input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 8px;
    transition: all 0.3s ease;
}

.password-input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.password-input-container input.error {
    border-color: #dc2626;
    animation: shake 0.5s ease;
}

.password-error {
    display: none;
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 10px;
}

.password-error.show {
    display: block;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
}

.cancel-btn:hover {
    background: #e2e8f0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */

/* Tablets */
@media (max-width: 992px) {
    .container {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .wash-container {
        padding: 30px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .header-icon {
        width: 70px;
        height: 70px;
    }

    .header-icon svg {
        width: 35px;
        height: 35px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .wash-container {
        padding: 20px;
        border-radius: 16px;
    }

    .wash-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .wash-header-icon {
        width: 50px;
        height: 50px;
    }

    .wash-header-icon svg {
        width: 25px;
        height: 25px;
    }

    .wash-header h2 {
        font-size: 1.4rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group select,
    .form-group input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

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

    .incubator-info {
        padding: 20px;
    }

    .incubator-info h4 {
        font-size: 1.1rem;
    }

    .info-item {
        padding: 14px;
    }

    .info-item span {
        font-size: 0.8rem;
    }

    .info-item strong {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 16px;
        font-size: 1.05rem;
    }

    .back-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Modal Responsive */
    .modal-content {
        margin: 20px;
        padding: 35px 25px;
        border-radius: 20px;
        max-width: calc(100% - 40px);
    }

    .password-modal {
        padding: 30px 25px;
    }

    .password-icon {
        width: 65px;
        height: 65px;
    }

    .password-icon svg {
        width: 32px;
        height: 32px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 1rem;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon svg {
        width: 40px;
        height: 40px;
    }

    .password-input-container input {
        padding: 14px 16px;
        font-size: 1rem;
        letter-spacing: 6px;
    }

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

    .modal-btn {
        padding: 14px 20px;
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 15px 12px;
    }

    .header {
        margin-bottom: 25px;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon svg {
        width: 30px;
        height: 30px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .header p {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

    .wash-container {
        padding: 18px;
    }

    .wash-header h2 {
        font-size: 1.25rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group select,
    .form-group input {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .incubator-info {
        padding: 15px;
        border-radius: 12px;
    }

    .info-item {
        padding: 12px;
    }

    .days-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .back-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .modal-content {
        margin: 15px;
        padding: 25px 20px;
        max-width: calc(100% - 30px);
    }

    .password-modal {
        padding: 25px 20px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon svg {
        width: 35px;
        height: 35px;
    }

    .password-icon {
        width: 55px;
        height: 55px;
    }

    .password-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 18px;
    }

    .wash-container {
        padding: 15px;
    }

    .info-grid {
        gap: 10px;
    }

    .modal-content {
        margin: 10px;
        padding: 20px 15px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 15px 20px;
    }

    .header {
        margin-bottom: 20px;
    }

    .header-icon {
        width: 50px;
        height: 50px;
    }

    .header h1 {
        font-size: 1.3rem;
    }

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

    .modal-content {
        padding: 20px 30px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .success-icon,
    .password-icon {
        width: 50px;
        height: 50px;
    }

    .success-icon svg,
    .password-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .submit-btn:hover {
        transform: none;
    }

    .submit-btn:active {
        transform: scale(0.98);
    }

    .modal-btn:hover {
        transform: none;
    }

    .back-btn:hover {
        background: white;
        color: var(--text-dark);
        border-color: #e2e8f0;
    }

    .back-btn:active {
        background: var(--primary);
        color: white;
    }
}

/* Safe Area for notched phones */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto 25px;
    display: block;
}

.login-container h1 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-container > p {
    color: #64748b;
    margin-bottom: 30px;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.login-input.error {
    border-color: #dc2626;
    animation: shake 0.5s ease;
}

.login-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}

.login-error.show {
    display: block;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    display: inline-flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-info svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.user-info span {
    color: var(--text-dark);
    font-weight: 600;
}

.logout-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
}

/* Monthly Calendar Table */
.monthly-table-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-top: 25px;
}

.monthly-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.monthly-table-header h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-nav button {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.month-nav button:hover {
    background: var(--primary);
}

.month-nav button:hover svg {
    fill: white;
}

.month-nav button svg {
    width: 20px;
    height: 20px;
    fill: #64748b;
}

.month-nav span {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 150px;
    text-align: center;
}

.monthly-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.monthly-table th,
.monthly-table td {
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.monthly-table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.monthly-table th:first-child {
    position: sticky;
    right: 0;
    background: #f1f5f9;
    z-index: 2;
    min-width: 100px;
}

.monthly-table td:first-child {
    position: sticky;
    right: 0;
    background: white;
    font-weight: 700;
    color: var(--text-dark);
    z-index: 1;
}

.monthly-table tbody tr:hover td {
    background: #f0fdfa;
}

.monthly-table tbody tr:hover td:first-child {
    background: #e0f7fa;
}

.check-mark {
    color: #22c55e;
    font-size: 1.2rem;
    font-weight: bold;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

.check-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Export Section */
.export-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.export-section h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.export-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.export-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.export-btn.pdf-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.export-btn.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.export-btn.excel-btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.export-btn.excel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

@media (max-width: 480px) {
    .export-buttons {
        flex-direction: column;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 35px 25px;
    }

    .login-logo {
        width: 300px;
        height: 300px;
    }

    .login-container h1 {
        font-size: 1.4rem;
    }

    .user-info {
        flex-wrap: wrap;
        padding: 8px 15px;
    }

    .monthly-table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.deletable-cell {
    cursor: pointer;
    position: relative;
}

.deletable-cell:hover {
    background: #fee2e2 !important;
}

.deletable-cell:hover .deletable {
    transform: scale(1.1);
}

.deletable {
    transition: all 0.2s ease;
}

@keyframes slideIn {
    from {
transform: translateX(400px);
opacity: 0;
    }
    to {
transform: translateX(0);
opacity: 1;
    }
}

@keyframes slideOut {
    from {
transform: translateX(0);
opacity: 1;
    }
    to {
transform: translateX(400px);
opacity: 0;
    }
}