/* ============================================
   VIZINHO DESIGN SYSTEM
   Premium Condominium Management Platform
   ============================================ */

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

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Primary Colors - Deep Forest Green */
    --vz-primary: #002c14;
    --vz-primary-rgb: 0, 44, 20;
    --vz-primary-light: #004d24;
    --vz-primary-lighter: #006b33;
    --vz-primary-dark: #001a0c;
    --vz-primary-darker: #000f06;
    --vz-primary-50: rgba(0, 44, 20, 0.05);
    --vz-primary-100: rgba(0, 44, 20, 0.1);
    --vz-primary-200: rgba(0, 44, 20, 0.2);
    --vz-primary-300: rgba(0, 44, 20, 0.3);
    --vz-primary-400: rgba(0, 44, 20, 0.4);
    --vz-primary-500: rgba(0, 44, 20, 0.5);
    --vz-primary-600: rgba(0, 44, 20, 0.6);
    --vz-primary-700: rgba(0, 44, 20, 0.7);
    --vz-primary-800: rgba(0, 44, 20, 0.8);
    --vz-primary-900: rgba(0, 44, 20, 0.9);

    /* Neutral Colors */
    --vz-white: #ffffff;
    --vz-gray-50: #f8fafc;
    --vz-gray-100: #f1f5f9;
    --vz-gray-200: #e2e8f0;
    --vz-gray-300: #cbd5e1;
    --vz-gray-400: #94a3b8;
    --vz-gray-500: #64748b;
    --vz-gray-600: #475569;
    --vz-gray-700: #334155;
    --vz-gray-800: #1e293b;
    --vz-gray-900: #0f172a;
    --vz-gray-950: #020617;

    /* Semantic Colors */
    --vz-success: #10b981;
    --vz-success-light: #d1fae5;
    --vz-success-dark: #059669;
    --vz-warning: #f59e0b;
    --vz-warning-light: #fef3c7;
    --vz-warning-dark: #d97706;
    --vz-danger: #ef4444;
    --vz-danger-light: #fee2e2;
    --vz-danger-dark: #dc2626;
    --vz-info: #3b82f6;
    --vz-info-light: #dbeafe;
    --vz-info-dark: #2563eb;

    /* Background Colors */
    --vz-bg-primary: var(--vz-gray-50);
    --vz-bg-secondary: var(--vz-white);
    --vz-bg-card: var(--vz-white);
    --vz-bg-sidebar: var(--vz-primary);
    --vz-bg-header: rgba(255, 255, 255, 0.95);

    /* Text Colors */
    --vz-text-primary: var(--vz-gray-900);
    --vz-text-secondary: var(--vz-gray-500);
    --vz-text-muted: var(--vz-gray-400);
    --vz-text-inverse: var(--vz-white);

    /* Border Colors */
    --vz-border-color: var(--vz-gray-200);
    --vz-border-light: var(--vz-gray-100);

    /* Shadows */
    --vz-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --vz-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --vz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --vz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --vz-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --vz-shadow-card: 0 4px 24px rgba(0, 44, 20, 0.08);
    --vz-shadow-card-hover: 0 8px 32px rgba(0, 44, 20, 0.12);

    /* Border Radius */
    --vz-radius-sm: 8px;
    --vz-radius-md: 12px;
    --vz-radius-lg: 16px;
    --vz-radius-xl: 20px;
    --vz-radius-2xl: 24px;
    --vz-radius-full: 9999px;

    /* Spacing */
    --vz-space-1: 0.25rem;
    --vz-space-2: 0.5rem;
    --vz-space-3: 0.75rem;
    --vz-space-4: 1rem;
    --vz-space-5: 1.25rem;
    --vz-space-6: 1.5rem;
    --vz-space-8: 2rem;
    --vz-space-10: 2.5rem;
    --vz-space-12: 3rem;
    --vz-space-16: 4rem;

    /* Typography */
    --vz-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --vz-font-size-xs: 0.75rem;
    --vz-font-size-sm: 0.875rem;
    --vz-font-size-base: 1rem;
    --vz-font-size-lg: 1.125rem;
    --vz-font-size-xl: 1.25rem;
    --vz-font-size-2xl: 1.5rem;
    --vz-font-size-3xl: 1.875rem;
    --vz-font-size-4xl: 2.25rem;

    /* Transitions */
    --vz-transition-fast: 150ms ease;
    --vz-transition-base: 200ms ease;
    --vz-transition-slow: 300ms ease;
    --vz-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --vz-sidebar-width: 280px;
    --vz-sidebar-collapsed-width: 80px;
    --vz-header-height: 72px;
    --vz-content-padding: 1.5rem;
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */
[data-theme="dark"] {
    --vz-bg-primary: var(--vz-gray-900);
    --vz-bg-secondary: var(--vz-gray-800);
    --vz-bg-card: var(--vz-gray-800);
    --vz-bg-sidebar: var(--vz-primary-darker);
    --vz-bg-header: rgba(15, 23, 42, 0.95);

    --vz-text-primary: var(--vz-gray-100);
    --vz-text-secondary: var(--vz-gray-400);
    --vz-text-muted: var(--vz-gray-500);

    --vz-border-color: var(--vz-gray-700);
    --vz-border-light: var(--vz-gray-800);

    --vz-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --vz-shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--vz-font-family);
    font-size: var(--vz-font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--vz-text-primary);
    background-color: var(--vz-bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--vz-font-family);
    font-weight: 700;
    line-height: 1.3;
    color: var(--vz-text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--vz-font-size-4xl);
    font-weight: 200;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--vz-font-size-3xl);
    font-weight: 200;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--vz-font-size-2xl);
    font-weight: 300;
}

h4 {
    font-size: var(--vz-font-size-xl);
    font-weight: 400;
}

h5 {
    font-size: var(--vz-font-size-lg);
    font-weight: 500;
}

h6 {
    font-size: var(--vz-font-size-base);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--vz-text-secondary);
}

a {
    color: var(--vz-primary);
    text-decoration: none;
    transition: color var(--vz-transition-fast);
}

a:hover {
    color: var(--vz-primary-light);
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.vz-app {
    display: flex;
    min-height: 100vh;
}

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

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

.vz-sidebar-header {
    padding: var(--vz-space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    background-color: #fff;
}

.vz-sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--vz-space-3);
}

.vz-sidebar-logo img {
    height: 40px;
    width: auto;
    transition: opacity var(--vz-transition-base);
}

.vz-sidebar-logo span {
    color: var(--vz-white);
    font-size: var(--vz-font-size-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.vz-sidebar.collapsed .vz-sidebar-logo span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.vz-sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--vz-white);
    width: 32px;
    height: 32px;
    border-radius: var(--vz-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--vz-transition-fast);
}

.vz-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vz-sidebar-nav {
    flex: 1;
    padding: var(--vz-space-4);
    overflow-y: auto;
    overflow-x: hidden;
}

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

.vz-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.vz-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--vz-radius-full);
}

.vz-nav-section {
    margin-bottom: var(--vz-space-6);
}

.vz-nav-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--vz-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 var(--vz-space-3);
    margin-bottom: var(--vz-space-2);
    white-space: nowrap;
}

.vz-sidebar.collapsed .vz-nav-section-title {
    opacity: 0;
}

.vz-nav-item {
    margin-bottom: var(--vz-space-1);
}

.vz-nav-link {
    display: flex;
    align-items: center;
    gap: var(--vz-space-3);
    padding: var(--vz-space-3) var(--vz-space-3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--vz-radius-md);
    transition: all var(--vz-transition-fast);
    position: relative;
    overflow: hidden;
}

.vz-nav-link:hover {
    color: var(--vz-white);
    background: rgba(255, 255, 255, 0.1);
}

.vz-nav-link.active {
    color: var(--vz-white);
    background: rgba(255, 255, 255, 0.15);
}

.vz-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--vz-white);
    border-radius: 0 var(--vz-radius-full) var(--vz-radius-full) 0;
}

.vz-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.vz-nav-link span {
    white-space: nowrap;
    font-weight: 500;
}

.vz-sidebar.collapsed .vz-nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.vz-nav-badge {
    margin-left: auto;
    background: var(--vz-danger);
    color: var(--vz-white);
    font-size: var(--vz-font-size-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--vz-radius-full);
    min-width: 20px;
    text-align: center;
}

.vz-sidebar.collapsed .vz-nav-badge {
    display: none;
}

.vz-sidebar-footer {
    padding: var(--vz-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vz-sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--vz-space-3);
    padding: var(--vz-space-3);
    border-radius: var(--vz-radius-md);
    transition: background var(--vz-transition-fast);
    cursor: pointer;
}

.vz-sidebar-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vz-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--vz-radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.vz-sidebar-user-name {
    color: var(--vz-white);
    font-weight: 600;
    font-size: var(--vz-font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vz-sidebar-user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--vz-font-size-xs);
}

.vz-sidebar.collapsed .vz-sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.vz-main {
    flex: 1;
    margin-left: var(--vz-sidebar-width);
    transition: margin-left var(--vz-transition-slow);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* ============================================
   HEADER / TOPBAR
   ============================================ */
.vz-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--vz-bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vz-border-light);
    padding: 0 var(--vz-content-padding);
    height: var(--vz-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--vz-transition-base);
}

.vz-header-left {
    display: flex;
    align-items: center;
    gap: var(--vz-space-4);
}

.vz-header-right {
    display: flex;
    align-items: center;
    gap: var(--vz-space-3);
}

.vz-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--vz-space-2);
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-secondary);
}

.vz-breadcrumb-item {
    color: var(--vz-text-secondary);
}

.vz-breadcrumb-item.active {
    color: var(--vz-text-primary);
    font-weight: 500;
}

.vz-breadcrumb-separator {
    color: var(--vz-text-muted);
}

.vz-search {
    position: relative;
    width: 320px;
}

.vz-search-input {
    width: 100%;
    padding: var(--vz-space-3) var(--vz-space-4);
    padding-left: 44px;
    background: var(--vz-bg-primary);
    border: 1px solid var(--vz-border-color);
    border-radius: var(--vz-radius-full);
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-primary);
    transition: all var(--vz-transition-fast);
}

.vz-search-input:focus {
    outline: none;
    border-color: var(--vz-primary);
    box-shadow: 0 0 0 3px var(--vz-primary-100);
}

.vz-search-input::placeholder {
    color: var(--vz-text-muted);
}

.vz-search-icon {
    position: absolute;
    left: var(--vz-space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--vz-text-muted);
    pointer-events: none;
}

.vz-header-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--vz-border-color);
    border-radius: var(--vz-radius-md);
    color: var(--vz-text-secondary);
    cursor: pointer;
    transition: all var(--vz-transition-fast);
    position: relative;
}

.vz-header-btn:hover {
    background: var(--vz-primary-50);
    border-color: var(--vz-primary);
    color: var(--vz-primary);
}

.vz-header-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--vz-danger);
    color: var(--vz-white);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: var(--vz-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--vz-bg-header);
}

.vz-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--vz-radius-full);
    object-fit: cover;
    border: 2px solid var(--vz-border-color);
    cursor: pointer;
    transition: border-color var(--vz-transition-fast);
}

.vz-header-avatar:hover {
    border-color: var(--vz-primary);
}

.vz-mobile-menu-btn {
    display: none;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.vz-content {
    flex: 1;
    padding: var(--vz-content-padding);
}

.vz-page-header {
    margin-bottom: var(--vz-space-8);
}

.vz-page-title {
    font-size: var(--vz-font-size-3xl);
    font-weight: 200;
    color: var(--vz-text-primary);
    margin-bottom: var(--vz-space-2);
}

.vz-page-subtitle {
    color: var(--vz-text-secondary);
    font-size: var(--vz-font-size-base);
}

/* ============================================
   CARDS
   ============================================ */
.vz-card {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-xl);
    box-shadow: var(--vz-shadow-card);
    border: 1px solid var(--vz-border-light);
    transition: all var(--vz-transition-base);
    overflow: hidden;
}

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

.vz-card-header {
    padding: var(--vz-space-6);
    border-bottom: 1px solid var(--vz-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vz-card-title {
    font-size: var(--vz-font-size-lg);
    font-weight: 600;
    color: var(--vz-text-primary);
    margin: 0;
}

.vz-card-body {
    padding: var(--vz-space-6);
}

.vz-card-footer {
    padding: var(--vz-space-4) var(--vz-space-6);
    border-top: 1px solid var(--vz-border-light);
    background: var(--vz-gray-50);
}

/* ============================================
   STAT CARDS
   ============================================ */
.vz-stat-card {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-xl);
    padding: var(--vz-space-6);
    box-shadow: var(--vz-shadow-card);
    border: 1px solid var(--vz-border-light);
    transition: all var(--vz-transition-base);
    position: relative;
    overflow: hidden;
}

.vz-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--vz-primary);
    border-radius: var(--vz-radius-xl) 0 0 var(--vz-radius-xl);
    opacity: 0;
    transition: opacity var(--vz-transition-fast);
}

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

.vz-stat-card:hover::before {
    opacity: 1;
}

.vz-stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--vz-space-4);
}

.vz-stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--vz-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.vz-stat-card-icon.primary {
    background: var(--vz-primary-100);
    color: var(--vz-primary);
}

.vz-stat-card-icon.success {
    background: var(--vz-success-light);
    color: var(--vz-success);
}

.vz-stat-card-icon.warning {
    background: var(--vz-warning-light);
    color: var(--vz-warning);
}

.vz-stat-card-icon.danger {
    background: var(--vz-danger-light);
    color: var(--vz-danger);
}

.vz-stat-card-icon.info {
    background: var(--vz-info-light);
    color: var(--vz-info);
}

.vz-stat-card-label {
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--vz-space-1);
}

.vz-stat-card-value {
    font-size: var(--vz-font-size-3xl);
    font-weight: 700;
    color: var(--vz-text-primary);
    line-height: 1.2;
}

.vz-stat-card-change {
    display: inline-flex;
    align-items: center;
    gap: var(--vz-space-1);
    font-size: var(--vz-font-size-sm);
    font-weight: 600;
    margin-top: var(--vz-space-2);
}

.vz-stat-card-change.positive {
    color: var(--vz-success);
}

.vz-stat-card-change.negative {
    color: var(--vz-danger);
}

/* ============================================
   BUTTONS
   ============================================ */
.vz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vz-space-2);
    padding: var(--vz-space-3) var(--vz-space-5);
    font-family: var(--vz-font-family);
    font-size: var(--vz-font-size-sm);
    font-weight: 600;
    border-radius: var(--vz-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--vz-transition-fast);
    text-decoration: none;
    line-height: 1.5;
}

.vz-btn-primary {
    background: var(--vz-primary);
    color: var(--vz-white);
}

.vz-btn-primary:hover {
    background: var(--vz-primary-light);
    color: var(--vz-white);
    transform: translateY(-1px);
    box-shadow: var(--vz-shadow-md);
}

.vz-btn-secondary {
    background: var(--vz-gray-100);
    color: var(--vz-text-primary);
}

.vz-btn-secondary:hover {
    background: var(--vz-gray-200);
    color: var(--vz-text-primary);
}

.vz-btn-outline {
    background: transparent;
    border: 1px solid var(--vz-border-color);
    color: var(--vz-text-primary);
}

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

.vz-btn-ghost {
    background: transparent;
    color: var(--vz-text-secondary);
}

.vz-btn-ghost:hover {
    background: var(--vz-gray-100);
    color: var(--vz-text-primary);
}

.vz-btn-sm {
    padding: var(--vz-space-2) var(--vz-space-3);
    font-size: var(--vz-font-size-xs);
}

.vz-btn-lg {
    padding: var(--vz-space-4) var(--vz-space-8);
    font-size: var(--vz-font-size-base);
}

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

.vz-btn-icon.vz-btn-sm {
    width: 32px;
    height: 32px;
}

.vz-btn-icon.vz-btn-lg {
    width: 48px;
    height: 48px;
}

/* ============================================
   TABLES
   ============================================ */
.vz-table-wrapper {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-xl);
    box-shadow: var(--vz-shadow-card);
    border: 1px solid var(--vz-border-light);
    overflow: hidden;
}

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

.vz-table thead {
    background: var(--vz-gray-50);
}

.vz-table th {
    padding: var(--vz-space-4) var(--vz-space-5);
    text-align: left;
    font-size: var(--vz-font-size-xs);
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--vz-border-light);
}

.vz-table td {
    padding: var(--vz-space-4) var(--vz-space-5);
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-primary);
    border-bottom: 1px solid var(--vz-border-light);
    vertical-align: middle;
}

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

.vz-table tbody tr:hover {
    background: var(--vz-primary-50);
}

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

.vz-table-actions {
    display: flex;
    align-items: center;
    gap: var(--vz-space-2);
}

/* ============================================
   FORMS
   ============================================ */
.vz-form-group {
    margin-bottom: var(--vz-space-5);
}

.vz-form-label {
    display: block;
    font-size: var(--vz-font-size-sm);
    font-weight: 600;
    color: var(--vz-text-primary);
    margin-bottom: var(--vz-space-2);
}

.vz-form-input {
    width: 100%;
    padding: var(--vz-space-3) var(--vz-space-4);
    background: var(--vz-bg-card);
    border: 1px solid var(--vz-border-color);
    border-radius: var(--vz-radius-md);
    font-family: var(--vz-font-family);
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-primary);
    transition: all var(--vz-transition-fast);
}

.vz-form-input:focus {
    outline: none;
    border-color: var(--vz-primary);
    box-shadow: 0 0 0 3px var(--vz-primary-100);
}

.vz-form-input::placeholder {
    color: var(--vz-text-muted);
}

.vz-form-input:disabled {
    background: var(--vz-gray-100);
    cursor: not-allowed;
}

.vz-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='%23343a40' 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 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.vz-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.vz-form-hint {
    font-size: var(--vz-font-size-xs);
    color: var(--vz-text-muted);
    margin-top: var(--vz-space-1);
}

.vz-form-error {
    font-size: var(--vz-font-size-xs);
    color: var(--vz-danger);
    margin-top: var(--vz-space-1);
}

.vz-form-input.is-invalid {
    border-color: var(--vz-danger);
}

.vz-form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--vz-danger-light);
}

/* ============================================
   BADGES
   ============================================ */
.vz-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--vz-font-size-xs);
    font-weight: 600;
    border-radius: var(--vz-radius-full);
    line-height: 1.4;
}

.vz-badge-primary {
    background: var(--vz-primary-100);
    color: var(--vz-primary);
}

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

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

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

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

.vz-badge-neutral {
    background: var(--vz-gray-100);
    color: var(--vz-gray-600);
}

/* ============================================
   DROPDOWN
   ============================================ */
.vz-dropdown {
    position: relative;
    display: inline-block;
}

.vz-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-lg);
    box-shadow: var(--vz-shadow-xl);
    border: 1px solid var(--vz-border-light);
    padding: var(--vz-space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--vz-transition-fast);
    z-index: 1000;
}

.vz-dropdown.show .vz-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vz-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--vz-space-3);
    padding: var(--vz-space-3) var(--vz-space-4);
    color: var(--vz-text-primary);
    font-size: var(--vz-font-size-sm);
    border-radius: var(--vz-radius-sm);
    cursor: pointer;
    transition: background var(--vz-transition-fast);
}

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

.vz-dropdown-divider {
    height: 1px;
    background: var(--vz-border-light);
    margin: var(--vz-space-2) 0;
}

/* ============================================
   MODAL
   ============================================ */
.vz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--vz-space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--vz-transition-base);
}

.vz-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vz-modal {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-xl);
    box-shadow: var(--vz-shadow-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--vz-transition-base);
}

.vz-modal-overlay.show .vz-modal {
    transform: scale(1) translateY(0);
}

.vz-modal-header {
    padding: var(--vz-space-6);
    border-bottom: 1px solid var(--vz-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vz-modal-title {
    font-size: var(--vz-font-size-xl);
    font-weight: 600;
    margin: 0;
}

.vz-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--vz-radius-sm);
    color: var(--vz-text-muted);
    cursor: pointer;
    transition: all var(--vz-transition-fast);
}

.vz-modal-close:hover {
    background: var(--vz-gray-100);
    color: var(--vz-text-primary);
}

.vz-modal-body {
    padding: var(--vz-space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.vz-modal-footer {
    padding: var(--vz-space-4) var(--vz-space-6);
    border-top: 1px solid var(--vz-border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--vz-space-3);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.vz-toast-container {
    position: fixed;
    top: var(--vz-space-6);
    right: var(--vz-space-6);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--vz-space-3);
}

.vz-toast {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-lg);
    box-shadow: var(--vz-shadow-xl);
    border: 1px solid var(--vz-border-light);
    padding: var(--vz-space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--vz-space-3);
    min-width: 320px;
    max-width: 420px;
    animation: slideInRight var(--vz-transition-slow);
}

.vz-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--vz-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.vz-toast-icon.success {
    background: var(--vz-success-light);
    color: var(--vz-success);
}

.vz-toast-icon.danger {
    background: var(--vz-danger-light);
    color: var(--vz-danger);
}

.vz-toast-icon.warning {
    background: var(--vz-warning-light);
    color: var(--vz-warning);
}

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

.vz-toast-title {
    font-weight: 600;
    font-size: var(--vz-font-size-sm);
    color: var(--vz-text-primary);
    margin-bottom: 2px;
}

.vz-toast-message {
    font-size: var(--vz-font-size-xs);
    color: var(--vz-text-secondary);
}

.vz-toast-close {
    background: transparent;
    border: none;
    color: var(--vz-text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */
.vz-pagination {
    display: flex;
    align-items: center;
    gap: var(--vz-space-1);
}

.vz-pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--vz-radius-md);
    font-size: var(--vz-font-size-sm);
    font-weight: 500;
    color: var(--vz-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--vz-transition-fast);
}

.vz-pagination-item:hover {
    background: var(--vz-primary-50);
    color: var(--vz-primary);
}

.vz-pagination-item.active {
    background: var(--vz-primary);
    color: var(--vz-white);
}

.vz-pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.vz-progress {
    height: 8px;
    background: var(--vz-gray-200);
    border-radius: var(--vz-radius-full);
    overflow: hidden;
}

.vz-progress-bar {
    height: 100%;
    background: var(--vz-primary);
    border-radius: var(--vz-radius-full);
    transition: width var(--vz-transition-slow);
}

.vz-progress-bar.success {
    background: var(--vz-success);
}

.vz-progress-bar.warning {
    background: var(--vz-warning);
}

.vz-progress-bar.danger {
    background: var(--vz-danger);
}

/* ============================================
   ACCORDION
   ============================================ */
.vz-accordion {
    background: var(--vz-bg-card);
    border-radius: var(--vz-radius-xl);
    box-shadow: var(--vz-shadow-card);
    border: 1px solid var(--vz-border-light);
    overflow: hidden;
}

.vz-accordion-item {
    border-bottom: 1px solid var(--vz-border-light);
}

.vz-accordion-item:last-child {
    border-bottom: none;
}

.vz-accordion-header {
    padding: var(--vz-space-4) var(--vz-space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--vz-transition-fast);
}

.vz-accordion-header:hover {
    background: var(--vz-gray-50);
}

.vz-accordion-title {
    font-weight: 600;
    font-size: var(--vz-font-size-base);
    margin: 0;
}

.vz-accordion-icon {
    transition: transform var(--vz-transition-fast);
}

.vz-accordion-item.active .vz-accordion-icon {
    transform: rotate(180deg);
}

.vz-accordion-body {
    padding: 0 var(--vz-space-6);
    max-height: 0;
    overflow: hidden;
    transition: all var(--vz-transition-base);
}

.vz-accordion-item.active .vz-accordion-body {
    padding: 0 var(--vz-space-6) var(--vz-space-6);
    max-height: 500px;
}

/* ============================================
   TOOLTIP
   ============================================ */
.vz-tooltip {
    position: relative;
}

.vz-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--vz-gray-900);
    color: var(--vz-white);
    font-size: var(--vz-font-size-xs);
    padding: var(--vz-space-2) var(--vz-space-3);
    border-radius: var(--vz-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vz-transition-fast);
    pointer-events: none;
    z-index: 100;
}

.vz-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.vz-empty-state {
    text-align: center;
    padding: var(--vz-space-16) var(--vz-space-8);
}

.vz-empty-state-icon {
    font-size: 4rem;
    color: var(--vz-text-muted);
    margin-bottom: var(--vz-space-4);
}

.vz-empty-state-title {
    font-size: var(--vz-font-size-xl);
    font-weight: 600;
    color: var(--vz-text-primary);
    margin-bottom: var(--vz-space-2);
}

.vz-empty-state-text {
    color: var(--vz-text-secondary);
    margin-bottom: var(--vz-space-6);
}

/* ============================================
   AVATARS
   ============================================ */
.vz-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--vz-radius-full);
    object-fit: cover;
    border: 2px solid var(--vz-bg-card);
}

.vz-avatar-sm {
    width: 32px;
    height: 32px;
}

.vz-avatar-lg {
    width: 56px;
    height: 56px;
}

.vz-avatar-xl {
    width: 72px;
    height: 72px;
}

.vz-avatar-group {
    display: flex;
}

.vz-avatar-group .vz-avatar {
    margin-left: -12px;
}

.vz-avatar-group .vz-avatar:first-child {
    margin-left: 0;
}

/* ============================================
   LOADING STATES
   ============================================ */
.vz-skeleton {
    background: linear-gradient(90deg, var(--vz-gray-200) 25%, var(--vz-gray-100) 50%, var(--vz-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--vz-radius-sm);
}

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

    100% {
        background-position: -200% 0;
    }
}

.vz-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--vz-gray-200);
    border-top-color: var(--vz-primary);
    border-radius: var(--vz-radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vz-animate-fadeIn {
    animation: fadeIn var(--vz-transition-base);
}

.vz-animate-fadeInUp {
    animation: fadeInUp var(--vz-transition-slow);
}

.vz-animate-fadeInDown {
    animation: fadeInDown var(--vz-transition-slow);
}

.vz-animate-scaleIn {
    animation: scaleIn var(--vz-transition-base);
}

/* Staggered animations for lists */
.vz-stagger>* {
    animation: fadeInUp var(--vz-transition-slow) backwards;
}

.vz-stagger>*:nth-child(1) {
    animation-delay: 0ms;
}

.vz-stagger>*:nth-child(2) {
    animation-delay: 50ms;
}

.vz-stagger>*:nth-child(3) {
    animation-delay: 100ms;
}

.vz-stagger>*:nth-child(4) {
    animation-delay: 150ms;
}

.vz-stagger>*:nth-child(5) {
    animation-delay: 200ms;
}

.vz-stagger>*:nth-child(6) {
    animation-delay: 250ms;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.vz-theme-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--vz-gray-200);
    border-radius: var(--vz-radius-full);
    cursor: pointer;
    transition: background var(--vz-transition-fast);
}

.vz-theme-toggle.active {
    background: var(--vz-primary);
}

.vz-theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--vz-white);
    border-radius: var(--vz-radius-full);
    transition: transform var(--vz-transition-fast);
    box-shadow: var(--vz-shadow-sm);
}

.vz-theme-toggle.active::before {
    transform: translateX(22px);
}

/* ============================================
   CHARTS CONTAINER
   ============================================ */
.vz-chart-container {
    position: relative;
    width: 100%;
    padding: var(--vz-space-4);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.vz-text-primary {
    color: var(--vz-primary) !important;
}

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

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

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

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

.vz-bg-primary {
    background-color: var(--vz-primary) !important;
}

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

.vz-font-light {
    font-weight: 300 !important;
}

.vz-font-medium {
    font-weight: 500 !important;
}

.vz-font-semibold {
    font-weight: 600 !important;
}

.vz-font-bold {
    font-weight: 700 !important;
}

.vz-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vz-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vz-gap-1 {
    gap: var(--vz-space-1);
}

.vz-gap-2 {
    gap: var(--vz-space-2);
}

.vz-gap-3 {
    gap: var(--vz-space-3);
}

.vz-gap-4 {
    gap: var(--vz-space-4);
}

.vz-gap-6 {
    gap: var(--vz-space-6);
}

.vz-gap-8 {
    gap: var(--vz-space-8);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199.98px) {
    .vz-sidebar {
        transform: translateX(-100%);
    }

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

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

    .vz-mobile-menu-btn {
        display: flex;
    }

    .vz-search {
        display: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --vz-content-padding: 1rem;
    }

    .vz-page-title {
        font-size: var(--vz-font-size-2xl);
    }

    .vz-stat-card-value {
        font-size: var(--vz-font-size-2xl);
    }

    .vz-header {
        padding: 0 var(--vz-space-4);
    }

    .vz-card-header,
    .vz-card-body {
        padding: var(--vz-space-4);
    }

    .vz-table-wrapper {
        overflow-x: auto;
    }

    .vz-modal {
        margin: var(--vz-space-4);
        max-height: calc(100vh - 32px);
    }
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vz-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--vz-gray-300);
    border-radius: var(--vz-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vz-gray-400);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .vz-sidebar,
    .vz-header,
    .vz-toast-container {
        display: none !important;
    }

    .vz-main {
        margin-left: 0 !important;
    }

    .vz-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
