/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff; /* White */
    --primary: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --accent-blue: #0ea5e9; /* Sky 500 */
    --accent-gold: #d97706; /* Amber 600 */
    --accent-green: #059669; /* Emerald 600 */
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: #e2e8f0; /* Slate 200 */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tours & Travels Theme (Public Site) - Light Mode */
.travel-hero {
    background: linear-gradient(rgba(248, 250, 252, 0.7), rgba(248, 250, 252, 0.95)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.travel-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.travel-hero p {
    font-size: 1.25rem;
    color: #334155;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-travel {
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-travel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: white;
}

/* Glassmorphism / Clean Card Classes in Light Mode */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(79, 70, 229, 0.25);
}

.tour-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.tour-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tour-details {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tour-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar Layout for Admin Dashboard - Light Mode */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.02);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-brand {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.sidebar-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    margin-bottom: auto;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-item a:hover, .sidebar-item.active a {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    border-left: 3px solid var(--primary);
}

/* Admin Cards Widgets - Light Mode */
.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Form Styles */
.form-glass {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-glass:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    color: var(--text-main);
}

.form-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* DataTables Light Theme Styling Overrides */
.dataTables_wrapper {
    color: var(--text-main) !important;
}

table.dataTable {
    background-color: #ffffff !important;
    border-color: var(--border-color) !important;
    margin-top: 1.5rem !important;
    border-radius: 8px;
    overflow: hidden;
}

table.dataTable thead th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 14px 12px !important;
    font-weight: 600 !important;
}

table.dataTable tbody td {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 14px 12px !important;
}

table.dataTable.table-hover tbody tr:hover td {
    background-color: #f8fafc !important;
}

.dataTables_filter input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.8rem !important;
}

.dataTables_filter input:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dataTables_length select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 0.3rem !important;
}

.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.page-link {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

.page-link:hover {
    background-color: rgba(79, 70, 229, 0.08) !important;
    color: var(--primary) !important;
}

/* Modals Light Theme */
.modal-content-light {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 1.25rem !important;
}

.modal-header-light {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer-light {
    border-top: 1px solid var(--border-color) !important;
}

.alert-danger-light {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* Dark layout overrides to Light theme in HTML files */
.table-dark {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: var(--text-main) !important;
    --bs-table-border-color: var(--border-color) !important;
    --bs-table-hover-bg: #f8fafc !important;
    --bs-table-hover-color: var(--text-main) !important;
}

/* ==========================================
   RESPONSIVE DESIGN OVERRIDES
   ========================================== */
@media (max-width: 991.98px) {
    .admin-container {
        flex-direction: column !important;
    }
    
    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 240px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
        background: #ffffff !important;
        border-right: none !important;
        padding-top: 4rem !important; /* Space for mobile close button */
        margin-left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .admin-sidebar.show {
        transform: translateX(0) !important;
    }
    
    .admin-main {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .dataTables_wrapper .row > div {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .travel-hero {
        padding: 2.5rem 1.25rem !important;
        min-height: auto !important;
    }
    
    .travel-hero h1 {
        font-size: 2.25rem !important;
    }
    
    .travel-hero p {
        font-size: 1rem !important;
    }
    
    .glass-card {
        padding: 1.25rem !important;
    }
    
    .metric-card {
        padding: 1.25rem !important;
    }
}

/* Desktop Collapsible Sidebar */
@media (min-width: 992px) {
    .admin-sidebar {
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    
    .admin-container.sidebar-collapsed .admin-sidebar {
        margin-left: -220px !important;
        opacity: 0;
        pointer-events: none;
    }
}

