/* ============================================
   SOVEREIGN GUEST - Premium Hotel Management Theme
   Version: 2.0.0
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary - Deep Navy */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #0f4c81;
    --primary-700: #0a3a64;
    --primary-800: #082f52;
    --primary-900: #0c1d36;

    /* Accent - Warm Gold */
    --accent-50: #fdf8f0;
    --accent-100: #f9edda;
    --accent-200: #f2d9b4;
    --accent-300: #e8c08a;
    --accent-400: #d4a574;
    --accent-500: #c4915e;
    --accent-600: #b07a48;
    --accent-700: #93633c;
    --accent-800: #785135;
    --accent-900: #63442f;

    /* Sidebar */
    --sidebar-bg: linear-gradient(180deg, #0c1d36 0%, #132d4f 50%, #0f2440 100%);
    --sidebar-width: 272px;
    --sidebar-collapsed-width: 80px;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: rgba(59, 130, 246, 0.15);
    --sidebar-border: rgba(255, 255, 255, 0.06);

    /* Topbar */
    --topbar-height: 64px;
    --topbar-bg: rgba(255, 255, 255, 0.85);

    /* Layout */
    --content-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
    --card-radius: 16px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Manrope', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index layers */
    --z-sidebar: 40;
    --z-topbar: 30;
    --z-dropdown: 50;
    --z-modal: 60;
    --z-toast: 70;
}

/* ---- Base Reset & Typography ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--content-bg);
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar scrollbar */
.sv-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
.sv-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Layout Structure ---- */
.sv-layout {
    display: flex;
    min-height: 100vh;
}

.sv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-base);
}

.sv-content {
    flex: 1;
    padding-top: var(--topbar-height);
}

.sv-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 28px;
}

/* ---- Sidebar ---- */
.sv-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), width var(--transition-base);
    overflow: hidden;
}

.sv-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 72px;
}

.sv-sidebar-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.sv-sidebar-brand-text h2 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.sv-sidebar-brand-text p {
    color: var(--sidebar-text);
    font-size: 11px;
    margin: 2px 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Sidebar Navigation */
.sv-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sv-nav-section {
    margin-bottom: 6px;
}

.sv-nav-label {
    display: flex;
    align-items: center;
    padding: 8px 14px 6px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4b6584;
    user-select: none;
}

.sv-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    margin-bottom: 2px;
}

.sv-nav-link:hover {
    color: #e2e8f0;
    background: var(--sidebar-hover-bg);
}

.sv-nav-link.active {
    color: var(--sidebar-text-active);
    background: var(--sidebar-active-bg);
    font-weight: 600;
}

.sv-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-400);
    border-radius: 0 3px 3px 0;
}

.sv-nav-link .material-symbols-outlined {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sv-nav-link.active .material-symbols-outlined {
    opacity: 1;
}

.sv-nav-link .sv-nav-badge {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

/* Sidebar Sub-links */
.sv-nav-sub .sv-nav-link {
    padding-left: 48px;
    font-size: 13px;
    opacity: 0.85;
}
.sv-nav-sub .sv-nav-link:hover {
    opacity: 1;
}

/* Sidebar Bottom */
.sv-sidebar-bottom {
    padding: 16px;
    border-top: 1px solid var(--sidebar-border);
}

.sv-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}

.sv-sidebar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.35);
    filter: brightness(1.05);
}

.sv-sidebar-cta .material-symbols-outlined {
    font-size: 18px;
}

.sv-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 12px;
    border-radius: 10px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.sv-sidebar-user:hover {
    background: var(--sidebar-hover-bg);
}

.sv-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.sv-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sv-sidebar-user-info h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sv-sidebar-user-info p {
    color: var(--sidebar-text);
    font-size: 11px;
    margin: 1px 0 0;
}

/* ---- Topbar ---- */
.sv-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--topbar-height);
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: var(--z-topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    transition: left var(--transition-base);
}

.sv-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.sv-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search */
.sv-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 8px 16px;
    width: 100%;
    max-width: 420px;
    transition: all var(--transition-fast);
}

.sv-search:focus-within {
    background: #fff;
    border-color: var(--primary-300);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sv-search .material-symbols-outlined {
    color: #94a3b8;
    font-size: 20px;
}

.sv-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #334155;
    width: 100%;
    font-family: var(--font-sans);
}

.sv-search input::placeholder {
    color: #94a3b8;
}

.sv-search kbd {
    display: none;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    white-space: nowrap;
}

/* Topbar buttons */
.sv-topbar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sv-topbar-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.sv-topbar-btn .material-symbols-outlined {
    font-size: 22px;
}

.sv-topbar-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.sv-topbar-new-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    text-decoration: none;
}

.sv-topbar-new-btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.sv-topbar-new-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Mobile menu button */
.sv-mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

/* Topbar Dropdown */
.sv-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    min-width: 320px;
    z-index: var(--z-dropdown);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.sv-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.sv-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sv-dropdown-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sv-dropdown-header span {
    font-size: 12px;
    color: #64748b;
}

.sv-dropdown-body {
    max-height: 380px;
    overflow-y: auto;
}

.sv-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.sv-dropdown-item:hover {
    background: #f8fafc;
}

.sv-dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sv-dropdown-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 2px;
}

.sv-dropdown-item p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sv-dropdown-item time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.sv-dropdown-unread {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* ---- Page Header ---- */
.sv-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.sv-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.sv-page-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sv-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.sv-date-badge .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-500);
}

/* ---- Stat Cards ---- */
.sv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.sv-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sv-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: background var(--transition-base);
}

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

.sv-stat-card:hover::after {
    background: linear-gradient(90deg, var(--primary-500), var(--accent-400));
}

.sv-stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sv-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 4px;
}

.sv-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-display);
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.sv-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sv-stat-icon .material-symbols-outlined {
    font-size: 24px;
}

.sv-stat-icon.primary { background: var(--primary-50); color: var(--primary-600); }
.sv-stat-icon.success { background: #f0fdf4; color: #16a34a; }
.sv-stat-icon.warning { background: #fffbeb; color: #d97706; }
.sv-stat-icon.danger  { background: #fef2f2; color: #dc2626; }
.sv-stat-icon.info    { background: #eff6ff; color: #2563eb; }
.sv-stat-icon.accent  { background: var(--accent-50); color: var(--accent-600); }

.sv-stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-top: 2px;
}

.sv-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.sv-stat-change.up {
    color: #16a34a;
    background: #f0fdf4;
}

.sv-stat-change.down {
    color: #dc2626;
    background: #fef2f2;
}

.sv-stat-change .material-symbols-outlined {
    font-size: 14px;
}

.sv-stat-footer-text {
    color: #94a3b8;
}

/* ---- Cards ---- */
.sv-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.sv-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.sv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.sv-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sv-card-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 4px 0 0;
}

.sv-card-body {
    padding: 24px;
}

.sv-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ---- Content Grid ---- */
.sv-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 28px;
}

.sv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sv-grid-3-1 { grid-template-columns: 2fr 1fr; }
.sv-grid-1-3 { grid-template-columns: 1fr 2fr; }

/* ---- Tables ---- */
.sv-table-wrap {
    overflow-x: auto;
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    background: #fff;
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
}

.sv-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sv-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}

.sv-table td {
    padding: 14px 20px;
    font-size: 13.5px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

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

.sv-table tbody tr:hover {
    background: #f8fafc;
}

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

/* Table Empty State */
.sv-table-empty {
    text-align: center;
    padding: 48px 24px;
}

.sv-table-empty .material-symbols-outlined {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.sv-table-empty p {
    font-size: 14px;
    color: #94a3b8;
}

/* ---- Badges ---- */
.sv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.4;
    white-space: nowrap;
}

.sv-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sv-badge.success { background: #f0fdf4; color: #166534; }
.sv-badge.success .sv-badge-dot { background: #22c55e; }
.sv-badge.warning { background: #fffbeb; color: #92400e; }
.sv-badge.warning .sv-badge-dot { background: #f59e0b; }
.sv-badge.danger  { background: #fef2f2; color: #991b1b; }
.sv-badge.danger .sv-badge-dot  { background: #ef4444; }
.sv-badge.info    { background: #eff6ff; color: #1e40af; }
.sv-badge.info .sv-badge-dot    { background: #3b82f6; }
.sv-badge.gray    { background: #f1f5f9; color: #475569; }
.sv-badge.gray .sv-badge-dot    { background: #94a3b8; }
.sv-badge.primary { background: var(--primary-50); color: var(--primary-700); }
.sv-badge.primary .sv-badge-dot { background: var(--primary-500); }
.sv-badge.accent  { background: var(--accent-50); color: var(--accent-700); }
.sv-badge.accent .sv-badge-dot  { background: var(--accent-500); }

/* ---- Buttons ---- */
.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.sv-btn:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

.sv-btn .material-symbols-outlined { font-size: 18px; }

/* Sizes */
.sv-btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }
.sv-btn-md { padding: 10px 20px; font-size: 13.5px; }
.sv-btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }

/* Primary */
.sv-btn-primary {
    background: var(--primary-600);
    color: #fff;
}
.sv-btn-primary:hover {
    background: var(--primary-700);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
    transform: translateY(-1px);
}

/* Secondary */
.sv-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
.sv-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Success */
.sv-btn-success {
    background: #16a34a;
    color: #fff;
}
.sv-btn-success:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* Danger */
.sv-btn-danger {
    background: #dc2626;
    color: #fff;
}
.sv-btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Ghost */
.sv-btn-ghost {
    background: transparent;
    color: #475569;
}
.sv-btn-ghost:hover {
    background: #f1f5f9;
}

/* Full width */
.sv-btn-full { width: 100%; }

/* Disabled */
.sv-btn:disabled, .sv-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Alerts ---- */
.sv-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 20px;
    animation: sv-slideDown 0.3s ease-out;
}

.sv-alert .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sv-alert-content { flex: 1; }

.sv-alert-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}

.sv-alert-message {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.sv-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    transition: opacity var(--transition-fast);
}
.sv-alert-close:hover { opacity: 1; }

.sv-alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.sv-alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.sv-alert.danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sv-alert.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---- Modals ---- */
.sv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.sv-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sv-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-base);
    overflow: hidden;
}

.sv-modal-overlay.open .sv-modal {
    transform: translateY(0) scale(1);
}

.sv-modal-sm { max-width: 440px; }
.sv-modal-md { max-width: 560px; }
.sv-modal-lg { max-width: 720px; }
.sv-modal-xl { max-width: 960px; }

.sv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.sv-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sv-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.sv-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.sv-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.sv-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ---- Forms ---- */
.sv-form-group {
    margin-bottom: 20px;
}

.sv-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sv-form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: #1e293b;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.sv-form-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sv-form-input::placeholder {
    color: #9ca3af;
}

.sv-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.sv-form-help {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.sv-form-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* ---- Pagination ---- */
.sv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}

.sv-pagination-info {
    font-size: 13px;
    color: #64748b;
}

.sv-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sv-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sv-pagination-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sv-pagination-link.active {
    background: var(--primary-600);
    color: #fff;
    border-color: var(--primary-600);
}

.sv-pagination-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Avatars ---- */
.sv-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.sv-avatar-sm { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.sv-avatar-md { width: 40px; height: 40px; font-size: 14px; }
.sv-avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.sv-avatar-xl { width: 64px; height: 64px; font-size: 20px; border-radius: 16px; }

/* ---- Quick Action Cards ---- */
.sv-quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--card-radius);
    transition: all var(--transition-base);
}

.sv-quick-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.sv-quick-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sv-quick-card-icon .material-symbols-outlined {
    font-size: 24px;
}

.sv-quick-card-info {
    flex: 1;
}

.sv-quick-card-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 2px;
}

.sv-quick-card-info h4 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-family: var(--font-display);
}

.sv-quick-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sv-quick-card-link:hover {
    background: #f1f5f9;
    color: var(--primary-600);
}

/* ---- Reservation List ---- */
.sv-rez-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background var(--transition-fast);
    gap: 16px;
}

.sv-rez-item:hover {
    background: #fafbfc;
}

.sv-rez-item:last-child {
    border-bottom: none;
}

.sv-rez-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.sv-rez-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 2px;
}

.sv-rez-info p {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0;
}

.sv-rez-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sv-rez-amount {
    text-align: right;
}

.sv-rez-amount h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sv-rez-amount p {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0;
}

/* ---- Footer ---- */
.sv-footer {
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    margin-top: auto;
}

.sv-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sv-footer-left {
    font-size: 13px;
    color: #64748b;
}

.sv-footer-left strong {
    color: #334155;
    font-weight: 600;
}

.sv-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sv-footer-right a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sv-footer-right a:hover {
    color: var(--primary-600);
}

.sv-footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.sv-footer-status-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: sv-pulse 2s ease-in-out infinite;
}

/* ---- Animations ---- */
@keyframes sv-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sv-slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sv-slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes sv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes sv-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Toast Notifications ---- */
.sv-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: sv-slideIn 0.3s ease-out;
}

.sv-toast .material-symbols-outlined { font-size: 20px; }
.sv-toast.success { background: #16a34a; }
.sv-toast.danger  { background: #dc2626; }
.sv-toast.info    { background: #2563eb; }
.sv-toast.warning { background: #d97706; }

/* ---- Chart Container ---- */
.sv-chart-container {
    position: relative;
    height: 260px;
}

/* ---- Login Page ---- */
.sv-login-page {
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
}

.sv-login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #0c1d36 0%, #132d4f 50%, #0f2440 100%);
    position: relative;
    overflow: hidden;
}

.sv-login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
}

.sv-login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 440px;
    color: #fff;
}

.sv-login-left-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.3);
}

.sv-login-left-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.sv-login-left-content p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.sv-login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    text-align: left;
}

.sv-login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.sv-login-feature .material-symbols-outlined {
    font-size: 22px;
    color: var(--accent-400);
}

.sv-login-feature span:last-child {
    font-size: 14px;
    color: #cbd5e1;
}

.sv-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-width: 560px;
}

.sv-login-form-wrap {
    width: 100%;
    max-width: 420px;
}

.sv-login-form-header {
    margin-bottom: 36px;
}

.sv-login-form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.sv-login-form-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.sv-login-input-group {
    margin-bottom: 20px;
}

.sv-login-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.sv-login-input-wrap {
    position: relative;
}

.sv-login-input-wrap .material-symbols-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af;
}

.sv-login-input {
    width: 100%;
    padding: 12px 14px 12px 46px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: #1e293b;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.sv-login-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.sv-login-input::placeholder {
    color: #9ca3af;
}

.sv-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
}
.sv-password-toggle:hover { color: #6b7280; }

.sv-login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.sv-login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.sv-login-remember label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-600);
}

.sv-login-remember a {
    font-size: 13px;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}
.sv-login-remember a:hover {
    text-decoration: underline;
}

.sv-login-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-600);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sv-login-submit:hover {
    background: var(--primary-700);
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.3);
    transform: translateY(-1px);
}

.sv-login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    font-size: 13.5px;
    margin-bottom: 24px;
    animation: sv-slideDown 0.3s ease-out;
}

.sv-login-error .material-symbols-outlined {
    font-size: 20px;
    color: #dc2626;
}

/* ---- Sidebar Overlay (Mobile) ---- */
.sv-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sidebar) - 1);
    backdrop-filter: blur(2px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sv-sidebar {
        transform: translateX(-100%);
    }

    .sv-sidebar.open {
        transform: translateX(0);
    }

    .sv-sidebar.open ~ .sv-sidebar-overlay {
        display: block;
    }

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

    .sv-topbar {
        left: 0;
    }

    .sv-mobile-menu {
        display: flex;
    }

    .sv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-grid-3-1,
    .sv-grid-1-3,
    .sv-grid-3 {
        grid-template-columns: 1fr;
    }

    .sv-search kbd {
        display: none;
    }

    /* Login responsive */
    .sv-login-left {
        display: none;
    }

    .sv-login-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sv-page {
        padding: 20px 16px;
    }

    .sv-stats-grid {
        grid-template-columns: 1fr;
    }

    .sv-grid-2 {
        grid-template-columns: 1fr;
    }

    .sv-page-header {
        flex-direction: column;
    }

    .sv-page-header h1 {
        font-size: 22px;
    }

    .sv-topbar-new-btn span:not(.material-symbols-outlined) {
        display: none;
    }

    .sv-search {
        max-width: none;
    }
}

@media (min-width: 1025px) {
    .sv-search kbd {
        display: inline-block;
    }
}

/* ---- Utility: Animations on load ---- */
.sv-animate-up {
    animation: sv-fadeUp 0.5s ease-out both;
}

@keyframes sv-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.sv-animate-up:nth-child(1) { animation-delay: 0ms; }
.sv-animate-up:nth-child(2) { animation-delay: 60ms; }
.sv-animate-up:nth-child(3) { animation-delay: 120ms; }
.sv-animate-up:nth-child(4) { animation-delay: 180ms; }
.sv-animate-up:nth-child(5) { animation-delay: 240ms; }

/* ---- Utility classes ---- */
.sv-text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sv-flex { display: flex; }
.sv-flex-col { flex-direction: column; }
.sv-items-center { align-items: center; }
.sv-justify-between { justify-content: space-between; }
.sv-gap-2 { gap: 8px; }
.sv-gap-3 { gap: 12px; }
.sv-gap-4 { gap: 16px; }
.sv-gap-5 { gap: 20px; }
.sv-gap-6 { gap: 24px; }
.sv-mt-4 { margin-top: 16px; }
.sv-mb-4 { margin-bottom: 16px; }
.sv-mb-6 { margin-bottom: 24px; }
