/* ============================================================
   Admin + Member Panel Styles
   ============================================================ */

:root {
    --sidebar-dark: #1e293b;
    --sidebar-darker: #0f172a;
    --sidebar-active: #0d6efd;
    --card-shadow: 0 2px 8px rgba(0,0,0,.08);
}

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2332 0%, #2d3e5f 50%, #0d6efd 100%);
}
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}
.login-card h2 {
    color: #1a2332;
    font-weight: 700;
    margin-bottom: 5px;
}
.login-card .subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-dark);
    color: #cbd5e1;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform .3s;
}
.sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar .sidebar-header h5 {
    color: #fff;
    margin: 0;
    font-weight: 700;
}
.sidebar .sidebar-header small {
    color: #94a3b8;
}
.sidebar .nav-link {
    color: #cbd5e1;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 0.95rem;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
    border-left-color: var(--sidebar-active);
}
.sidebar .nav-link.active {
    background: rgba(13,110,253,.15);
    color: #fff;
    border-left-color: var(--sidebar-active);
}
.sidebar .nav-link i {
    width: 24px;
    display: inline-block;
}
.sidebar .nav-section-title {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px 30px;
    transition: margin .3s;
}

/* Top bar */
.top-bar {
    background: #fff;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}
.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-bar .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform .2s;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}
.stat-card .stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* Content Card */
.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 25px;
}
.content-card .card-header-custom {
    padding: 18px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-card .card-header-custom h5 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}
.content-card .card-body-custom {
    padding: 25px;
}

/* Tables */
.table-card table {
    margin-bottom: 0;
}
.table-card thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-card tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge-upcoming { background: #3b82f6; }
.badge-ongoing { background: #22c55e; }
.badge-completed { background: #64748b; }
.badge-cancelled { background: #ef4444; }
.badge-pending { background: #f59e0b; }
.badge-confirmed { background: #22c55e; }
.badge-new { background: #3b82f6; }
.badge-replied { background: #22c55e; }
.badge-closed { background: #64748b; }

/* Forms */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 25px;
}
.form-card label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}
.form-card .form-control, .form-card .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
}
.form-card .form-control:focus, .form-card .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

/* Image preview */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Toggle sidebar button (mobile) */
.sidebar-toggle {
    display: none;
    background: #fff;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
}

/* Invoice/Receipt print */
.invoice-print {
    background: #fff;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.invoice-print .invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
@media print {
    .sidebar, .top-bar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .sidebar-toggle {
        display: inline-block;
    }
}

/* Member panel cards */
.member-tour-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .2s;
}
.member-tour-card:hover {
    transform: translateY(-3px);
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 0;
}
.timeline-item {
    border-left: 3px solid #3b82f6;
    padding-left: 20px;
    margin-bottom: 20px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 13px;
    height: 13px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid #fff;
}
