/* ═══════════════════════════════════════════════════════════════
   ROYELI TOURS & TRAVEL CRM — Premium Design System v2.0
   Brand Colors: Ocean Blue (#0B90C4) | Teal (#14B8C8) | Amber (#F7A614)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    /* ── Brand Palette ── */
    --primary: #0B90C4;
    /* Ocean Blue */
    --primary-dark: #0870A0;
    --primary-light: #E0F4FB;
    --primary-glow: rgba(11, 144, 196, 0.35);

    --teal: #14B8C8;
    --teal-dark: #0E95A3;
    --teal-light: #CCEFF4;
    --teal-glow: rgba(20, 184, 200, 0.35);

    --amber: #F7A614;
    --amber-dark: #D48A08;
    --amber-light: #FEF3CD;
    --amber-glow: rgba(247, 166, 20, 0.35);

    /* ── Semantic Colors ── */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #F7A614;
    --warning-light: #FEF3CD;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #14B8C8;
    --info-light: #CCEFF4;

    /* ── Sidebar ── */
    --sidebar-bg: #061828;
    --sidebar-mid: #0A2540;
    --sidebar-hover: rgba(11, 144, 196, 0.12);
    --sidebar-border: rgba(20, 184, 200, 0.12);
    --sidebar-text: #7EA8BC;
    --sidebar-active: #ffffff;
    --sidebar-width: 272px;

    /* ── Surface & Text ── */
    --bg-app: #F0F7FC;
    --bg-white: rgba(255, 255, 255, 0.9);
    --border: rgba(11, 144, 196, 0.12);
    --border-solid: #D1E8F2;
    --text-dark: #082030;
    --text-muted: #5B8FA8;
    --text-light: #8DB3C5;

    /* ── Radius ── */
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;

    /* ── Shadows ── */
    --shadow-sm: 0 2px 8px rgba(11, 144, 196, 0.06);
    --shadow-soft: 0 4px 20px rgba(11, 144, 196, 0.08);
    --shadow-hover: 0 12px 40px rgba(11, 144, 196, 0.18);
    --shadow-floating: 0 20px 60px rgba(6, 24, 40, 0.12);
    --shadow-amber: 0 6px 20px rgba(247, 166, 20, 0.4);
    --shadow-teal: 0 6px 20px rgba(20, 184, 200, 0.4);
    --shadow-blue: 0 6px 20px rgba(11, 144, 196, 0.4);

    /* ── Animation ── */
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lg: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background-color: var(--bg-app);
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(11, 144, 196, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(20, 184, 200, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 10%, rgba(247, 166, 20, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 0.94rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--teal-light);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal);
}

/* ══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-16px) scale(1.02);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes btn-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════
   AUTH / GUEST LAYOUT
══════════════════════════════════════════════════ */
.guest-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #061828 0%, #0A2540 40%, #073352 65%, #061828 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Animated decorative blobs */
.guest-blob-1,
.guest-blob-2,
.guest-blob-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    animation: float 12s infinite ease-in-out alternate;
}

.guest-blob-1 {
    top: -15%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: rgba(11, 144, 196, 0.25);
}

.guest-blob-2 {
    bottom: -15%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: rgba(20, 184, 200, 0.2);
    animation-delay: -6s;
}

.guest-blob-3 {
    top: 40%;
    left: 35%;
    width: 30vw;
    height: 30vw;
    background: rgba(247, 166, 20, 0.1);
    animation-delay: -3s;
}

.guest-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(20, 184, 200, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 460px;
    padding: 3rem 3.2rem;
    position: relative;
    z-index: 1;
    animation: slide-in-up 0.6s ease both;
}

.guest-card .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.guest-card .brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-blue);
}

.guest-card .brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.01em;
}

.guest-card .brand-name span {
    font-weight: 500;
    color: var(--teal);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.guest-card h2 {
    font-size: 1.65rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.3rem;
}

.guest-card p.guest-subtitle {
    color: var(--sidebar-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Form fields on auth pages */
.guest-card .form-control,
.guest-card .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(20, 184, 200, 0.25);
    color: white;
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    font-size: 0.94rem;
    transition: all var(--transition);
}

.guest-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.guest-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
    color: white;
    outline: none;
}

.guest-card .form-label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 0.85rem;
}

.guest-card a {
    color: var(--teal);
    font-weight: 600;
}

.guest-card a:hover {
    color: var(--amber);
}

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background: linear-gradient(185deg, var(--sidebar-bg) 0%, var(--sidebar-mid) 60%, #082030 100%);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-lg);
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
    animation: slide-in-left 0.4s ease both;
}

/* Decorative top accent */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal), var(--amber));
}

/* Logo area */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 1.4rem 1.3rem;
    text-decoration: none;
    border-bottom: 1px solid var(--sidebar-border);
    transition: all var(--transition);
}

.sidebar-logo:hover {
    opacity: 0.9;
}

.sidebar-logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 900;
    box-shadow: 0 4px 16px var(--primary-glow), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.sidebar-logo-text {
    line-height: 1.2;
}

.sidebar-logo-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5px;
}

.sidebar-logo-text span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1px;
}

/* Nav scroll area */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0 1rem;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 200, 0.2);
}

/* Section labels */
.sidebar-section {
    padding: 1.4rem 1.4rem 0.4rem;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(20, 184, 200, 0.5);
}

/* Nav items */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.1rem;
    margin: 0.15rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 144, 196, 0.15), rgba(20, 184, 200, 0.08));
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
}

.nav-link:hover {
    color: white;
    background: var(--sidebar-hover);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover i {
    color: var(--teal);
    transform: translateX(2px) scale(1.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(11, 144, 196, 0.22), rgba(20, 184, 200, 0.12));
    color: white !important;
    border-left: 3px solid var(--teal);
    padding-left: calc(1.1rem - 3px);
}

.nav-link.active::before {
    opacity: 1;
}

.nav-link.active i {
    color: var(--teal);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    box-shadow: var(--shadow-amber);
    animation: badge-pop 0.3s ease;
}

/* Bottom user strip */
.sidebar-user {
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(11, 144, 196, 0.08), rgba(20, 184, 200, 0.05));
    border-top: 1px solid var(--sidebar-border);
    transition: all var(--transition);
}

.sidebar-user:hover {
    background: rgba(11, 144, 196, 0.15);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
}

.sidebar-user-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 0.72rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════
   TOPBAR / HEADER
══════════════════════════════════════════════════ */
.main-header {
    height: 72px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-solid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(11, 144, 196, 0.06);
}

.header-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    background: white;
    border: 1.5px solid var(--border-solid);
    border-radius: 999px;
    padding: 0.55rem 1.4rem 0.55rem 2.6rem;
    font-size: 0.88rem;
    width: 300px;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.header-search input::placeholder {
    color: var(--text-light);
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
    width: 340px;
}

.header-search .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Notification/icon button */
.notif-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    border: 1.5px solid var(--border-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.notif-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-ring 1.8s infinite;
}

.notif-panel {
    width: 340px;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-solid);
    transition: background var(--transition);
}

.notif-item:hover {
    background: var(--primary-light);
}

.notif-item.unread {
    background: rgba(11, 144, 196, 0.04);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.notif-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* User pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    background: white;
    border: 1.5px solid var(--border-solid);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.user-pill:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-body {
    flex: 1;
    padding: 2rem;
    animation: slide-in-up 0.35s ease both;
}

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-solid) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-3px);
    border-color: rgba(11, 144, 196, 0.3) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-solid) !important;
    padding: 1.2rem 1.5rem !important;
    font-weight: 800 !important;
    font-size: 1rem;
}

/* KPI / Stat Cards */
.stat-card {
    background: white;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-lg);
}

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

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.is-blue {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.is-teal {
    background: var(--teal-light);
    color: var(--teal);
}

.stat-icon.is-amber {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.stat-icon.is-green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.is-red {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-delta {
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.stat-delta.up {
    color: var(--success);
}

.stat-delta.down {
    color: var(--danger);
}

/* ══════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════ */
.table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: none !important;
    padding: 0.9rem 1.4rem;
    background: rgba(11, 144, 196, 0.04);
    white-space: nowrap;
}

.table tbody td {
    padding: 0.9rem 1.4rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-solid);
    font-weight: 500;
    color: var(--text-dark);
}

.table-hover tbody tr {
    transition: background var(--transition);
}

.table-hover tbody tr:hover td {
    background: var(--primary-light);
}

.table-hover tbody tr:last-child td {
    border-bottom: none;
}

/* Avatar in tables */
.tbl-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   FORMS & INPUTS
══════════════════════════════════════════════════ */
.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-solid);
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    color: var(--text-dark);
    transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* ══════════════════════════════════════════════════
   BUTTONS — Animated & Premium
══════════════════════════════════════════════════ */
.btn {
    border-radius: var(--radius-md);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: scale(0) translate(-50%, -50%);
    transform-origin: top left;
}

.btn:active::after {
    animation: btn-ripple 0.5s ease;
}

/* Primary — Ocean Blue */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary), #0670A0);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Teal */
.btn-teal,
.btn-info {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    box-shadow: 0 4px 16px var(--teal-glow);
}

.btn-teal:hover,
.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--teal-glow);
    color: white;
}

/* Amber / warning */
.btn-warning,
.btn-amber {
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: white !important;
    box-shadow: var(--shadow-amber);
}

.btn-warning:hover,
.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--amber-glow);
    color: white !important;
}

/* Light / ghost */
.btn-light {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid var(--border-solid);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Outline */
.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-outline-teal {
    border: 1.5px solid var(--teal);
    color: var(--teal);
    background: transparent;
}

.btn-outline-teal:hover {
    background: var(--teal);
    color: white;
}

/* Danger */
.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc2222);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    color: white;
}

/* Success */
.btn-success {
    background: linear-gradient(135deg, var(--success), #0a9a66);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    color: white;
}

/* Icon buttons */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.btn-xs {
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.83rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.badge {
    padding: 0.35em 0.8em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-teal {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.badge-amber {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.badge-success {
    background: var(--success-light);
    color: #047857;
}

.badge-danger {
    background: var(--danger-light);
    color: #b91c1c;
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-info {
    background: var(--info-light);
    color: #0E7B89;
}

.badge-pending {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.badge-approved {
    background: var(--success-light);
    color: #047857;
}

.badge-rejected {
    background: var(--danger-light);
    color: #b91c1c;
}

.badge-active {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.badge-new {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Bootstrap overrides for .bg-* badges */
.bg-primary {
    background: var(--primary) !important;
}

.bg-info {
    background: var(--teal) !important;
}

.bg-warning {
    background: var(--amber) !important;
}

.text-primary {
    color: #ffffff !important;
}

.text-info {
    color: var(--teal) !important;
}

/* ══════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1,
.page-header h2 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header .subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Breadcrumb style mini-trail */
.page-trail {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-trail span {
    color: var(--primary);
}

/* ══════════════════════════════════════════════════
   FLASH ALERTS
══════════════════════════════════════════════════ */
.flash-alert {
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.25rem;
    border: none !important;
    box-shadow: var(--shadow-soft);
    animation: slide-in-up 0.35s ease both;
}

.alert-success {
    background: var(--success-light);
    color: #047857;
}

.alert-danger {
    background: var(--danger-light);
    color: #b91c1c;
}

.alert-warning {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.alert-info {
    background: var(--teal-light);
    color: var(--teal-dark);
}

/* ══════════════════════════════════════════════════
   SIDEBAR OVERLAY (Mobile)
══════════════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 40, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1039;
}

.sidebar-overlay.show {
    display: block;
}

/* ══════════════════════════════════════════════════
   PIPELINE / PROGRESS CARDS
══════════════════════════════════════════════════ */
.pipeline-card {
    background: white;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    transition: all var(--transition);
    border-left: 4px solid transparent;
}

.pipeline-card:hover {
    border-left-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.pipeline-card.active {
    border-left-color: var(--teal);
    background: var(--teal-light);
}

/* ══════════════════════════════════════════════════
   TIMELINE COMPONENT
══════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 1.8rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--teal), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-dot.teal {
    background: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.timeline-dot.amber {
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-light);
}

/* ══════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════ */
.nav-tabs {
    border-bottom: 2px solid var(--border-solid);
    gap: 0;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.87rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 0;
    margin: 0;
    background: none;
    transition: all var(--transition);
    border-left: none;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    background: white;
    border-bottom: 3px solid var(--primary);
    margin-bottom: -2px;
    border-left: none;
    padding-left: 1.2rem;
}

.nav-tabs .nav-link.active i {
    color: var(--primary) !important;
}

/* ══════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════ */
.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--border-solid);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: 999px;
    transition: width 1s ease;
}

.progress-bar.amber {
    background: linear-gradient(90deg, var(--amber), #F7C614);
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success), #34d399);
}

/* ══════════════════════════════════════════════════
   DROPDOWN MENUS
══════════════════════════════════════════════════ */
.dropdown-menu {
    border: 1px solid var(--border-solid) !important;
    box-shadow: var(--shadow-floating) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.5rem !important;
    animation: slide-in-up 0.2s ease;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.55rem 0.9rem;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-divider {
    border-color: var(--border-solid) !important;
    margin: 0.35rem 0 !important;
}

/* ══════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════ */
.modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-floating) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    border: none !important;
    padding: 1.25rem 1.75rem !important;
}

.modal-header .modal-title {
    font-weight: 900 !important;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.75rem !important;
}

.modal-footer {
    border-top: 1px solid var(--border-solid) !important;
    padding: 1rem 1.75rem !important;
    background: #fafcff;
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.pagination .page-link {
    border: 1.5px solid var(--border-solid);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    transition: all var(--transition);
    padding: 0.45rem 0.85rem;
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
}

/* ══════════════════════════════════════════════════
   TOOLTIPS & POPOVERS
══════════════════════════════════════════════════ */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* ══════════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════════ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
    background: linear-gradient(135deg, var(--amber), #F7C614);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-glass {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-solid);
    margin: 1.5rem 0;
}

.text-brand {
    color: var(--primary) !important;
}

.text-teal {
    color: var(--teal) !important;
}

.text-amber {
    color: var(--amber) !important;
}

.bg-brand-light {
    background: var(--primary-light) !important;
}

.bg-teal-light {
    background: var(--teal-light) !important;
}

.bg-amber-light {
    background: var(--amber-light) !important;
}

.rounded-brand {
    border-radius: var(--radius-md);
}

.rounded-brand-lg {
    border-radius: var(--radius-lg);
}

.rounded-brand-xl {
    border-radius: var(--radius-xl);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.88rem;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-floating);
    }

    .main-content {
        margin-left: 0;
    }

    .header-search {
        display: none !important;
    }

    .content-body {
        padding: 1.25rem;
    }

    .page-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .content-body {
        padding: 1rem;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .card-header {
        padding: 1rem 1.1rem !important;
    }

    .main-header {
        padding: 0 1.1rem;
    }

    .guest-card {
        padding: 2rem 1.5rem;
    }
}

/* ══════════════════════════════════════════════════
   GOOGLE 2FA PAGE
══════════════════════════════════════════════════ */
.g2fa-input {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.6rem;
    text-align: center;
    color: var(--primary);
    border: 2px solid var(--border-solid);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.g2fa-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
}