.menu-container {
    position: relative;
    padding-right: 18px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
    color: #1F9EBE;
}
.menu-toggle-bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px 0;
    border-radius: 2px;
    transition: background 0.2s;
}
@media (max-width: 600px) {
    .menu-container {
        position: relative;
        margin-bottom: 16px;
        padding-top: 18px;
        padding-right: 18px;
        padding-bottom: 14px;
    }
    .menu-toggle {
        display: block;
    }
    .menu-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 12px 0;
        position: absolute;
        right: 0;
        top: 44px;
        min-width: 180px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        z-index: 10;
        transition: max-height 0.3s, opacity 0.3s;
    }
    .menu-links.active {
        max-height: 400px;
        opacity: 1;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .menu-item {
        width: 100%;
        text-align: left;
        font-size: 16px;
        padding: 10px 18px;
    }
}
.menu-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .menu-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .menu-item {
        width: 100%;
        text-align: left;
        font-size: 16px;
        padding: 10px 14px;
    }
}
.menu-item {
    padding: 8px 18px;
    background: #f3f4f6;
    color: #1F9EBE;
    /*border-radius: 6px; */
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.menu-item:hover {
    background: #1F9EBE;
    color: #fff;
}
/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.notification.show {
    opacity: 1;
}
.notification-success {
    background: #28a745;
}
.notification-info {
    background: #1F9EBE;
}
/* Universal CSS for Track My Tots Project */

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== NAVIGATION STYLES ===== */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: translateX(-50%) scale(1);
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 256px;
    background: white;
    color: #1F9EBE;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-link {
    display: block;
    padding: 8px 16px;
    color: #1F9EBE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #666;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
}

@media (min-width: 768px) {
    .hero-section {
        height: 80vh;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        height: 100vh;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 24px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* ===== MARQUEE ANIMATION ===== */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

@media (min-width: 1024px) {
    .animate-marquee-lg {
        animation: marquee 30s linear infinite;
    }
}

/* ===== FORM STYLES ===== */
.form-input {
    width: 100%;
    background: #edf2f8;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #1F9EBE;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 158, 190, 0.2);
}

.form-textarea {
    width: 100%;
    background: #edf2f8;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #1F9EBE;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 158, 190, 0.2);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: #1F9EBE;
    color: white;
    padding: 8px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #45a4bc;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ===== CARD STYLES ===== */
.card {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

/* ===== PROFILE STYLES ===== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1F9EBE;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.profile-meta {
    color: #666;
    margin-bottom: 5px;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.profile-tab.active {
    color: #1F9EBE;
    border-bottom-color: #1F9EBE;
}

.profile-tab:hover {
    color: #1F9EBE;
}

/* ===== FORM GROUP STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1F9EBE;
    box-shadow: 0 0 0 2px rgba(31, 158, 190, 0.2);
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #1F9EBE;
    box-shadow: 0 0 0 2px rgba(31, 158, 190, 0.2);
}

/* ===== BUTTON GROUP STYLES ===== */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.save-btn {
    background: #1F9EBE;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background: #167a8f;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.edit-btn {
    background: #1F9EBE;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background: #167a8f;
}

.back-btn {
    color: #1F9EBE;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    transition: text-decoration 0.3s ease;
}

.back-btn:hover {
    text-decoration: underline;
}

/* ===== UPLOAD BUTTON STYLES ===== */
.upload-btn {
    background: #1F9EBE;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background: #167a8f;
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
}

.file-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ===== INFO GRID STYLES ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 500;
    color: #666;
}

.info-value {
    color: #333;
}

/* ===== TABLE STYLES ===== */
.driver-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.driver-table th,
.driver-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.driver-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Table container for horizontal scrolling */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Scroll indicator for mobile */
.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(31, 158, 190, 0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .table-container::after {
        opacity: 1;
    }
}

.table-container::-webkit-scrollbar {
    height: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #1F9EBE;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #167a8f;
}

.action-btn {
    background: #1F9EBE;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background: #167a8f;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

/* ===== DELETE SECTION STYLES ===== */
.delete-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.delete-section h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.delete-section p {
    color: #666;
    margin-bottom: 20px;
}

.delete-checkbox {
    margin-right: 10px;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

.delete-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ===== DELETE ICON BUTTON ===== */
.delete-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: #e53e3e;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon-btn:hover {
    background: #fed7d7;
    color: #c53030;
    transform: scale(1.1);
}

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

/* ===== BANNER SECTION STYLES ===== */
.banner-section {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 158, 190, 0.8) 0%, rgba(31, 158, 190, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== PASSWORD REQUIREMENTS STYLES ===== */
.password-requirements {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.password-requirements h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    color: #666;
    margin-bottom: 5px;
}

/* ===== FAQ STYLES ===== */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    background: #f9fafb;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question.active {
    background: #1f9ebe38;
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* ===== FOOTER STYLES ===== */
.footer {
    position: relative;
    padding: 64px 0;
    color: white;
    background: #111827;
}

.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-bg img {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.footer-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .driver-table {
        font-size: 12px;
        min-width: 600px; /* Ensure table has minimum width for mobile */
    }
    
    .driver-table th,
    .driver-table td {
        padding: 8px 4px;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    /* Ensure table container is properly styled on mobile */
    .table-container {
        margin: 0 -10px; /* Negative margin to allow full width scrolling */
        padding: 0 10px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 2px;
    }
    
    .delete-icon-btn {
        padding: 10px;
    }
    
    .delete-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-input,
    .form-select {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-btn,
    .cancel-btn {
        width: 100%;
        padding: 12px;
    }
    
    .upload-btn,
    .reset-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mobile-menu {
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .profile-info h3 {
        font-size: 20px;
    }
    
    .form-input,
    .form-select {
        font-size: 16px;
    }
    
    .delete-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .password-requirements {
        padding: 12px;
        font-size: 14px;
    }
    
    .driver-table {
        display: block;
        overflow-x: auto;
        min-width: 600px; /* Ensure minimum width for scrolling */
    }
    
    /* Additional mobile table improvements */
    .table-container {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .driver-table th,
    .driver-table td {
        min-width: 120px; /* Ensure minimum column width */
    }
    
    .driver-table th:first-child,
    .driver-table td:first-child {
        min-width: 140px; /* Driver name column */
    }
    
    .driver-table th:last-child,
    .driver-table td:last-child {
        min-width: 180px; /* Actions column */
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-tab {
        flex: none;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
        border-right: none;
    }
    
    .profile-tab.active {
        border-bottom-color: #1F9EBE;
        border-right: 2px solid #1F9EBE;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: #1F9EBE;
}

.bg-primary {
    background-color: #1F9EBE;
}

.border-primary {
    border-color: #1F9EBE;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded-lg {
    border-radius: 8px;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
} 
