/* =========================================================
   Frazix Tour and Travel - Admin Dashboard Stylesheet
   Modern Glassmorphic Control Portal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --admin-primary: #0284c7;
    --admin-primary-dark: #0369a1;
    --admin-sidebar: #0f172a;
    --admin-bg: #f8fafc;
    --admin-card: #ffffff;
    --admin-border: #e2e8f0;
    --admin-text: #1e293b;
    --admin-muted: #64748b;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    min-height: 100vh;
    display: flex;
}

/* ================= Sidebar ================= */
.sidebar {
    width: 260px;
    background: var(--admin-sidebar);
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #0369a1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.brand-text h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.brand-text span {
    font-size: 11px;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: white;
    background: var(--admin-primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #334155;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-info h5 {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.profile-info small {
    font-size: 11px;
    color: #64748b;
}

/* ================= Main Content ================= */
.main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-navbar {
    background: white;
    height: 70px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-text);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-body {
    padding: 30px;
    flex-grow: 1;
}

/* ================= KPI Cards ================= */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-info h6 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--admin-muted);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.kpi-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--admin-text);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-blue { background: #e0f2fe; color: #0284c7; }
.kpi-green { background: #dcfce7; color: #16a34a; }
.kpi-amber { background: #fef3c7; color: #d97706; }
.kpi-purple { background: #f3e8ff; color: #9333ea; }

/* ================= Data Cards & Tables ================= */
.data-card {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header-bar {
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-weight: 700;
    color: var(--admin-muted);
    border-bottom: 1px solid var(--admin-border);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* ================= Status Badges ================= */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-confirmed { background: #dcfce7; color: #15803d; }
.badge-completed { background: #e0f2fe; color: #0369a1; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }

/* ================= Action Buttons ================= */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-right: 4px;
}

.action-btn-whatsapp { background: #dcfce7; color: #16a34a; }
.action-btn-whatsapp:hover { background: #16a34a; color: white; }

.action-btn-edit { background: #e0f2fe; color: #0284c7; }
.action-btn-edit:hover { background: #0284c7; color: white; }

.action-btn-delete { background: #fee2e2; color: #ef4444; }
.action-btn-delete:hover { background: #ef4444; color: white; }

/* ================= Forms ================= */
.admin-form-group {
    margin-bottom: 16px;
}

.admin-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 6px;
}

.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: white;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ================= Tab Views ================= */
.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

/* ================= Login Overlay ================= */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #0369a1 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
}
