/*
|--------------------------------------------------------------------------
| Viartas Admin Theme - Modern Dashboard Styles
| A distinctive, refined admin panel using Bootstrap 5
|--------------------------------------------------------------------------
*/

/* ========================================================================
   CSS Custom Properties (Theme Variables)
   ======================================================================== */

:root {
    /* Primary Palette - Deep Indigo */
    --vt-primary: #6366f1;
    --vt-primary-hover: #4f46e5;
    --vt-primary-light: rgba(99, 102, 241, 0.1);
    --vt-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    /* Secondary Palette */
    --vt-secondary: #64748b;
    --vt-secondary-hover: #475569;
    
    /* Status Colors */
    --vt-success: #10b981;
    --vt-success-light: rgba(16, 185, 129, 0.1);
    --vt-danger: #ef4444;
    --vt-danger-light: rgba(239, 68, 68, 0.1);
    --vt-warning: #f59e0b;
    --vt-warning-light: rgba(245, 158, 11, 0.1);
    --vt-info: #06b6d4;
    --vt-info-light: rgba(6, 182, 212, 0.1);
    
    /* Dark Theme - Slate Palette */
    --vt-dark-900: #0f172a;
    --vt-dark-800: #1e293b;
    --vt-dark-700: #334155;
    --vt-dark-600: #475569;
    --vt-dark-500: #64748b;
    --vt-dark-400: #94a3b8;
    --vt-dark-300: #cbd5e1;
    --vt-dark-200: #e2e8f0;
    --vt-dark-100: #f1f5f9;
    --vt-dark-50: #f8fafc;
    
    /* Sidebar */
    --vt-sidebar-width: 280px;
    --vt-sidebar-collapsed-width: 80px;
    --vt-sidebar-bg: var(--vt-dark-900);
    --vt-sidebar-border: rgba(255, 255, 255, 0.05);
    
    /* Header */
    --vt-header-height: 70px;
    --vt-header-bg: rgba(255, 255, 255, 0.95);
    --vt-header-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    
    /* Content */
    --vt-content-bg: #f8fafc;
    --vt-card-bg: #ffffff;
    --vt-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --vt-card-hover-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --vt-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vt-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Border Radius */
    --vt-radius-sm: 6px;
    --vt-radius: 10px;
    --vt-radius-lg: 16px;
    --vt-radius-xl: 24px;
    
    /* Transitions */
    --vt-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --vt-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --vt-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --vt-content-bg: var(--vt-dark-900);
    --vt-card-bg: var(--vt-dark-800);
    --vt-header-bg: rgba(30, 41, 59, 0.95);
    --vt-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================================================
   Base Styles & Reset
   ======================================================================== */

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

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--vt-font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--vt-dark-700);
    background: var(--vt-content-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================================================
   Layout Structure
   ======================================================================== */

.vt-wrapper {
    display: flex;
    min-height: 100vh;
}

.vt-main {
    flex: 1;
    margin-left: var(--vt-sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--vt-transition);
}

.vt-main.sidebar-collapsed {
    margin-left: var(--vt-sidebar-collapsed-width);
}

.vt-content {
    padding: 24px 32px;
    padding-top: calc(var(--vt-header-height) + 24px);
    min-height: 100vh;
}

@media (max-width: 1199.98px) {
    .vt-main {
        margin-left: 0;
    }
    
    .vt-content {
        padding: 16px;
        padding-top: calc(var(--vt-header-height) + 16px);
    }
}

/* ========================================================================
   Sidebar Styles
   ======================================================================== */

.vt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--vt-sidebar-width);
    height: 100vh;
    background: var(--vt-sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--vt-transition), transform var(--vt-transition);
    overflow: hidden;
}

.vt-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.vt-sidebar.collapsed {
    width: var(--vt-sidebar-collapsed-width);
}

/* Sidebar Brand */
.vt-sidebar-brand {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vt-sidebar-border);
    position: relative;
    z-index: 1;
}

.vt-sidebar-brand-logo {
    width: 40px;
    height: 40px;
    background: var(--vt-primary-gradient);
    border-radius: var(--vt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.vt-sidebar-brand-logo svg,
.vt-sidebar-brand-logo i {
    color: white;
    font-size: 20px;
}

.vt-sidebar-brand-text {
    margin-left: 14px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--vt-transition);
}

.vt-sidebar.collapsed .vt-sidebar-brand-text {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar Menu */
.vt-sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.vt-sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.vt-sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.vt-sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--vt-dark-600);
    border-radius: 2px;
}

/* Menu Section Title */
.vt-menu-section {
    padding: 16px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vt-dark-500);
    white-space: nowrap;
    overflow: hidden;
}

.vt-sidebar.collapsed .vt-menu-section {
    text-align: center;
    padding: 16px 8px 8px;
}

.vt-sidebar.collapsed .vt-menu-section span {
    display: none;
}

.vt-sidebar.collapsed .vt-menu-section::after {
    content: '•••';
    font-size: 8px;
    letter-spacing: 2px;
}

/* Menu Items */
.vt-menu-item {
    margin-bottom: 4px;
}

.vt-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--vt-dark-400);
    text-decoration: none;
    border-radius: var(--vt-radius);
    transition: all var(--vt-transition-fast);
    position: relative;
    overflow: hidden;
}

.vt-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--vt-primary);
    opacity: 0;
    transition: opacity var(--vt-transition-fast);
    border-radius: 0 3px 3px 0;
}

.vt-menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.vt-menu-link.active {
    color: white;
    background: var(--vt-primary-light);
}

.vt-menu-link.active::before {
    opacity: 1;
}

.vt-menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    font-size: 18px;
    opacity: 0.8;
    transition: all var(--vt-transition-fast);
}

.vt-menu-link:hover .vt-menu-icon,
.vt-menu-link.active .vt-menu-icon {
    opacity: 1;
}

.vt-menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--vt-transition);
}

.vt-sidebar.collapsed .vt-menu-text {
    opacity: 0;
    pointer-events: none;
}

.vt-sidebar.collapsed .vt-menu-icon {
    margin-right: 0;
}

/* Menu Badge */
.vt-menu-badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--vt-primary);
    color: white;
    margin-left: auto;
}

.vt-menu-badge.success {
    background: var(--vt-success);
}

.vt-menu-badge.danger {
    background: var(--vt-danger);
}

.vt-menu-badge.warning {
    background: var(--vt-warning);
}

.vt-sidebar.collapsed .vt-menu-badge {
    display: none;
}

/* Submenu */
.vt-menu-arrow {
    margin-left: auto;
    transition: transform var(--vt-transition-fast);
    font-size: 12px;
}

.vt-menu-item.open > .vt-menu-link .vt-menu-arrow {
    transform: rotate(90deg);
}

.vt-submenu {
    display: none;
    padding-left: 34px;
}

.vt-menu-item.open > .vt-submenu {
    display: block;
}

.vt-submenu .vt-menu-link {
    padding: 10px 16px;
    font-size: 13px;
}

.vt-submenu .vt-menu-link::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vt-dark-500);
}

.vt-submenu .vt-menu-link:hover::before,
.vt-submenu .vt-menu-link.active::before {
    background: var(--vt-primary);
    opacity: 1;
}

.vt-sidebar.collapsed .vt-submenu {
    display: none !important;
}

/* Sidebar Footer */
.vt-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--vt-sidebar-border);
    position: relative;
    z-index: 1;
}

.vt-sidebar-user {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--vt-radius);
    cursor: pointer;
    transition: background var(--vt-transition-fast);
}

.vt-sidebar-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vt-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vt-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.vt-sidebar-user-info {
    margin-left: 12px;
    overflow: hidden;
    transition: opacity var(--vt-transition);
}

.vt-sidebar.collapsed .vt-sidebar-user-info {
    opacity: 0;
    pointer-events: none;
}

.vt-sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-sidebar-user-role {
    font-size: 12px;
    color: var(--vt-dark-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Sidebar */
@media (max-width: 1199.98px) {
    .vt-sidebar {
        transform: translateX(-100%);
    }
    
    .vt-sidebar.show {
        transform: translateX(0);
    }
    
    .vt-sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1039;
        opacity: 0;
        visibility: hidden;
        transition: all var(--vt-transition);
    }
    
    .vt-sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================================================
   Header Styles
   ======================================================================== */

.vt-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--vt-sidebar-width);
    height: var(--vt-header-height);
    background: var(--vt-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--vt-header-shadow);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: left var(--vt-transition);
}

.vt-header.sidebar-collapsed {
    left: var(--vt-sidebar-collapsed-width);
}

@media (max-width: 1199.98px) {
    .vt-header {
        left: 0;
        padding: 0 16px;
    }
}

/* Header Toggle */
.vt-header-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--vt-dark-600);
    border-radius: var(--vt-radius);
    cursor: pointer;
    transition: all var(--vt-transition-fast);
    margin-right: 16px;
}

.vt-header-toggle:hover {
    background: var(--vt-dark-100);
    color: var(--vt-dark-800);
}

/* Header Search */
.vt-header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.vt-header-search-input {
    width: 100%;
    height: 44px;
    padding: 0 44px;
    border: 1px solid var(--vt-dark-200);
    border-radius: var(--vt-radius-lg);
    background: var(--vt-dark-50);
    font-size: 14px;
    color: var(--vt-dark-700);
    transition: all var(--vt-transition-fast);
}

.vt-header-search-input:focus {
    outline: none;
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px var(--vt-primary-light);
    background: white;
}

.vt-header-search-input::placeholder {
    color: var(--vt-dark-400);
}

.vt-header-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vt-dark-400);
    font-size: 18px;
    pointer-events: none;
}

.vt-header-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.vt-header-search-kbd kbd {
    padding: 4px 8px;
    font-size: 11px;
    font-family: var(--vt-font-mono);
    background: var(--vt-dark-100);
    border: 1px solid var(--vt-dark-200);
    border-radius: 4px;
    color: var(--vt-dark-500);
}

/* Header Actions */
.vt-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.vt-header-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--vt-dark-600);
    border-radius: var(--vt-radius);
    cursor: pointer;
    transition: all var(--vt-transition-fast);
    position: relative;
}

.vt-header-action:hover {
    background: var(--vt-dark-100);
    color: var(--vt-dark-800);
}

.vt-header-action-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--vt-danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* Header User */
.vt-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    background: var(--vt-dark-50);
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--vt-transition-fast);
    margin-left: 8px;
    border: none;
}

.vt-header-user:hover {
    background: var(--vt-dark-100);
}

.vt-header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vt-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.vt-header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--vt-dark-700);
}

.vt-header-user-chevron {
    color: var(--vt-dark-400);
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .vt-header-search {
        display: none;
    }
    
    .vt-header-user-name {
        display: none;
    }
    
    .vt-header-user {
        padding: 4px;
        background: transparent;
    }
    
    .vt-header-user-chevron {
        display: none;
    }
}

/* ========================================================================
   Card Styles
   ======================================================================== */

.vt-card {
    background: var(--vt-card-bg);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-card-shadow);
    border: 1px solid var(--vt-dark-100);
    transition: all var(--vt-transition);
    overflow: hidden;
}

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

.vt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vt-dark-100);
}

.vt-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vt-dark-800);
    margin: 0;
}

.vt-card-subtitle {
    font-size: 13px;
    color: var(--vt-dark-500);
    margin-top: 4px;
}

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

.vt-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--vt-dark-100);
    background: var(--vt-dark-50);
}

/* ========================================================================
   Stats Card
   ======================================================================== */

.vt-stats-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.vt-stats-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--vt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.vt-stats-icon.primary {
    background: var(--vt-primary-light);
    color: var(--vt-primary);
}

.vt-stats-icon.success {
    background: var(--vt-success-light);
    color: var(--vt-success);
}

.vt-stats-icon.danger {
    background: var(--vt-danger-light);
    color: var(--vt-danger);
}

.vt-stats-icon.warning {
    background: var(--vt-warning-light);
    color: var(--vt-warning);
}

.vt-stats-icon.info {
    background: var(--vt-info-light);
    color: var(--vt-info);
}

.vt-stats-content {
    flex: 1;
}

.vt-stats-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--vt-dark-500);
    margin-bottom: 4px;
}

.vt-stats-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vt-dark-800);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.vt-stats-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 50px;
}

.vt-stats-change.positive {
    background: var(--vt-success-light);
    color: var(--vt-success);
}

.vt-stats-change.negative {
    background: var(--vt-danger-light);
    color: var(--vt-danger);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--vt-radius);
    border: none;
    cursor: pointer;
    transition: all var(--vt-transition-fast);
    text-decoration: none;
}

.vt-btn-primary {
    background: var(--vt-primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.vt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    color: white;
}

.vt-btn-secondary {
    background: var(--vt-dark-100);
    color: var(--vt-dark-700);
}

.vt-btn-secondary:hover {
    background: var(--vt-dark-200);
    color: var(--vt-dark-800);
}

.vt-btn-outline {
    background: transparent;
    border: 1px solid var(--vt-dark-200);
    color: var(--vt-dark-700);
}

.vt-btn-outline:hover {
    border-color: var(--vt-primary);
    color: var(--vt-primary);
    background: var(--vt-primary-light);
}

.vt-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.vt-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.vt-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

/* ========================================================================
   Tables
   ======================================================================== */

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

.vt-table th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vt-dark-500);
    background: var(--vt-dark-50);
    border-bottom: 1px solid var(--vt-dark-100);
    text-align: left;
}

.vt-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--vt-dark-700);
    border-bottom: 1px solid var(--vt-dark-100);
    vertical-align: middle;
}

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

.vt-table tbody tr:hover {
    background: var(--vt-dark-50);
}

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

/* ========================================================================
   Badges
   ======================================================================== */

.vt-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

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

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

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

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

.vt-badge-info {
    background: var(--vt-info-light);
    color: var(--vt-info);
}

/* ========================================================================
   Form Controls
   ======================================================================== */

.vt-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-dark-700);
    margin-bottom: 8px;
}

.vt-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--vt-dark-200);
    border-radius: var(--vt-radius);
    background: white;
    color: var(--vt-dark-700);
    transition: all var(--vt-transition-fast);
}

.vt-form-control:focus {
    outline: none;
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px var(--vt-primary-light);
}

.vt-form-control::placeholder {
    color: var(--vt-dark-400);
}

.vt-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ========================================================================
   Dropdown
   ======================================================================== */

.vt-dropdown {
    position: relative;
    display: inline-block;
}

.vt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--vt-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--vt-dark-100);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--vt-transition-fast);
    z-index: 1050;
}

.vt-dropdown.show .vt-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.vt-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--vt-dark-700);
    text-decoration: none;
    border-radius: var(--vt-radius-sm);
    transition: all var(--vt-transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.vt-dropdown-item:hover {
    background: var(--vt-dark-50);
    color: var(--vt-dark-800);
}

.vt-dropdown-item i {
    width: 18px;
    color: var(--vt-dark-500);
}

.vt-dropdown-divider {
    height: 1px;
    background: var(--vt-dark-100);
    margin: 8px 0;
}

/* ========================================================================
   Page Header
   ======================================================================== */

.vt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.vt-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--vt-dark-800);
    margin: 0;
    letter-spacing: -0.5px;
}

.vt-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--vt-dark-500);
    margin-top: 4px;
}

.vt-page-breadcrumb a {
    color: var(--vt-dark-500);
    text-decoration: none;
    transition: color var(--vt-transition-fast);
}

.vt-page-breadcrumb a:hover {
    color: var(--vt-primary);
}

.vt-page-breadcrumb span {
    color: var(--vt-dark-400);
}

/* ========================================================================
   Charts Area
   ======================================================================== */

.vt-chart-container {
    position: relative;
    height: 300px;
}

/* ========================================================================
   Notifications & Toasts
   ======================================================================== */

.vt-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--vt-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--vt-primary);
    min-width: 320px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

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

.vt-toast.success {
    border-color: var(--vt-success);
}

.vt-toast.danger {
    border-color: var(--vt-danger);
}

.vt-toast.warning {
    border-color: var(--vt-warning);
}

.vt-toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vt-toast-content {
    flex: 1;
}

.vt-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vt-dark-800);
}

.vt-toast-message {
    font-size: 13px;
    color: var(--vt-dark-500);
    margin-top: 4px;
}

.vt-toast-close {
    background: none;
    border: none;
    color: var(--vt-dark-400);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

/* ========================================================================
   Utilities
   ======================================================================== */

.vt-shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.vt-shadow { box-shadow: var(--vt-card-shadow); }
.vt-shadow-lg { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }

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

.vt-text-primary { color: var(--vt-primary); }
.vt-text-success { color: var(--vt-success); }
.vt-text-danger { color: var(--vt-danger); }
.vt-text-warning { color: var(--vt-warning); }
.vt-text-muted { color: var(--vt-dark-500); }

.vt-bg-primary { background-color: var(--vt-primary); }
.vt-bg-primary-light { background-color: var(--vt-primary-light); }
.vt-bg-success { background-color: var(--vt-success); }
.vt-bg-danger { background-color: var(--vt-danger); }

/* Animation utilities */
.vt-fade-in {
    animation: fadeIn 0.3s ease;
}

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

.vt-slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */

@media (max-width: 575.98px) {
    .vt-stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .vt-card-body {
        padding: 16px;
    }
    
    .vt-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
