/* ═══════════════════════════════════════════════════════════════════════════
   TEKLİF CRM - Ultra Modern Design System v2.0
   Premium SaaS Application Design
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ─── Premium CSS Variables ─── */
:root {
    /* Primary Brand - Vibrant Indigo */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Success - Emerald */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    
    /* Warning - Amber */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    
    /* Danger - Rose */
    --danger-50: #fff1f2;
    --danger-100: #ffe4e6;
    --danger-200: #fecdd3;
    --danger-300: #fda4af;
    --danger-400: #fb7185;
    --danger-500: #f43f5e;
    --danger-600: #e11d48;
    --danger-700: #be123c;
    
    /* Info - Sky */
    --info-50: #f0f9ff;
    --info-100: #e0f2fe;
    --info-500: #0ea5e9;
    --info-600: #0284c7;
    
    /* Neutral - Slate */
    --gray-50: #f8fafc;
    --gray-75: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-600: #334155;
    --gray-700: #1e293b;
    --gray-800: #0f172a;
    --gray-900: #020617;
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    --gradient-dark: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 72px;
    --content-radius: 24px;
    
    /* Shadows - Premium Soft Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 6px 12px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 20px 25px -5px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-glow-danger: 0 0 20px rgba(244, 63, 94, 0.3);
    
    /* Border Radius - Large for modern look */
    --radius-xxs: 4px;
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out-expo);
    --transition-base: 250ms var(--ease-out-expo);
    --transition-slow: 400ms var(--ease-out-expo);
    --transition-spring: 500ms var(--ease-out-back);
}

/* ─── Base Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Typography System ─── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
    letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { 
    margin-bottom: 1rem; 
    color: var(--gray-600);
}
p:last-child { margin-bottom: 0; }

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

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

/* ─── Premium Sidebar ─── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-dark);
    z-index: 100;
    transition: width var(--transition-base);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--gray-300);
    font-weight: 500;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    color: var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-fast);
}

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

.sidebar-link:hover::before {
    height: 24px;
}

.sidebar-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}

.sidebar-link.active::before {
    height: 32px;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-500);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

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

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

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ─── Main Content Area ─── */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-base);
}

.main-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.header-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    border-color: var(--primary-300);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.header-search svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.header-icon-btn:hover {
    background: var(--gray-75);
    color: var(--gray-700);
}

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

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--gray-75);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
}

.header-user-info {
    text-align: left;
}

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.header-user-role {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* ─── Main Content ─── */
.main-content {
    padding: 2rem;
}

.content-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.content-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.content-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card-body {
    padding: 1.5rem;
}

/* ─── Page Header ─── */
.page-header {
    margin-bottom: 1.75rem;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.03em;
}

.page-description {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ─── Premium Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-xs {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--radius-xs);
}

.btn-icon {
    padding: 0.625rem;
    aspect-ratio: 1;
}

/* Primary Gradient Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Secondary Soft Button */
.btn-secondary {
    background: var(--gray-75);
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

/* Success Gradient Button */
.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Warning Gradient Button */
.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Danger Gradient Button */
.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-75);
    color: var(--gray-800);
}

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

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

/* ─── Premium Cards ─── */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.card-hover {
    transition: all var(--transition-base);
}

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

.card-gradient {
    background: var(--gradient-primary);
    color: white;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-75);
    background: var(--gray-50);
}

/* ─── Stats Cards ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--stat-color, var(--primary-500));
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-icon svg {
    width: 26px;
    height: 26px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-card-trend.up {
    color: #059669;
    background: #ecfdf5;
}

.stat-card-trend.down {
    color: #dc2626;
    background: #fef2f2;
}

.stat-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* ─── Quick Actions Grid ─── */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

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

.quick-action-primary {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}

.quick-action-primary:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.quick-action-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.quick-action-success:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.quick-action-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.quick-action-info:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.quick-action-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.quick-action-warning:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-primary .quick-action-icon {
    background: var(--gradient-primary);
    color: white;
}

.quick-action-success .quick-action-icon {
    background: var(--gradient-success);
    color: white;
}

.quick-action-info .quick-action-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.quick-action-warning .quick-action-icon {
    background: var(--gradient-warning);
    color: white;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.quick-action-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ─── Dashboard Grid ─── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* ─── Recent List ─── */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.recent-item:hover {
    background: var(--gray-75);
}

.recent-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.recent-item-content {
    flex: 1;
    min-width: 0;
}

.recent-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.recent-item-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.recent-item-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

.recent-item-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ─── Premium Tables ─── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-75) 100%);
}

th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

td {
    padding: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-75);
    vertical-align: middle;
}

tbody tr {
    transition: all var(--transition-fast);
}

tbody tr:hover {
    background: var(--gray-50);
}

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

/* ─── Customer Name Cell ─── */
.customer-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-name {
    font-weight: 600;
    color: #0f172a;
}

/* ─── Badges & Tags ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

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

.badge-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-700);
}

.badge-danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-info {
    background: var(--info-100);
    color: var(--info-600);
}

/* Pill Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
}

.tag-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-600);
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-600);
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-500);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger-600);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Select Input */
.form-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Textarea */
textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Floating Label Inputs */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-floating textarea ~ label {
    top: 1rem;
    transform: none;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-600);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ─── Premium Alerts ─── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-info {
    background: var(--info-50);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--info-600);
}

.alert-success {
    background: var(--success-50);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-700);
}

.alert-warning {
    background: var(--warning-50);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-700);
}

.alert-danger {
    background: var(--danger-50);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--danger-700);
}

/* ─── Premium Modals ─── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 210;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-spring);
}

.modal-backdrop.open .modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-xl {
    max-width: 800px;
}

.modal-lg {
    max-width: 600px;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-75);
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-75);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--gray-50);
}

/* ─── Dropdown ─── */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    min-width: 200px;
    padding: 0.5rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-75);
    color: var(--gray-900);
}

.dropdown-item.danger {
    color: var(--danger-600);
}

.dropdown-item.danger:hover {
    background: var(--danger-50);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

/* ─── Avatar ─── */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: var(--radius-xl);
}

.avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    border-radius: var(--radius-xl);
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 3px solid white;
    margin-left: -8px;
}

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

/* ─── Empty State ─── */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-75) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-2xl);
    font-size: 2rem;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.9375rem;
    color: var(--gray-500);
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

/* ─── Action Bar ─── */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Search Box */
.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: white;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

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

/* ─── Progress Bar ─── */
.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

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

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

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

/* ─── Tooltip ─── */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.4s var(--ease-out-expo); }
.animate-slide-down { animation: slideDown 0.4s var(--ease-out-expo); }
.animate-scale-in { animation: scaleIn 0.3s var(--ease-out-expo); }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    animation: slideUp 0.4s var(--ease-out-expo) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 50ms; }
.stagger-item:nth-child(3) { animation-delay: 100ms; }
.stagger-item:nth-child(4) { animation-delay: 150ms; }
.stagger-item:nth-child(5) { animation-delay: 200ms; }
.stagger-item:nth-child(6) { animation-delay: 250ms; }
.stagger-item:nth-child(7) { animation-delay: 300ms; }
.stagger-item:nth-child(8) { animation-delay: 350ms; }

/* ─── Skeleton Loading ─── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-75) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 24px;
    width: 50%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    height: 120px;
}

/* ─── Login Page ─── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-glow-primary);
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

/* ─── Responsive - Tablet & Desktop ─── */
@media (max-width: 1024px) {
    /* Sidebar - Collapsed */
    .sidebar {
        width: var(--sidebar-collapsed);
    }
    
    .sidebar-title,
    .sidebar-subtitle,
    .sidebar-section-title,
    .sidebar-link span {
        display: none;
    }
    
    .main-wrapper {
        margin-left: var(--sidebar-collapsed);
    }
    
    /* Dashboard */
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-card {
        grid-column: span 2;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Responsive - Tablet (768px - 1023px) ─── */
@media (max-width: 768px) {
    /* Header */
    .main-header {
        padding: 0 1rem;
    }
    
    .header-search {
        width: 160px;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Dashboard Grid */
    .dashboard-main-grid {
        gap: 1rem;
    }
    
    .dashboard-right {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-card {
        grid-column: span 1;
    }
    
    /* Content Cards */
    .content-card,
    .content-card-v2 {
        margin-bottom: 1rem;
    }
    
    .content-card-header,
    .content-card-v2-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .content-card-body,
    .content-card-v2-body {
        padding: 1rem;
    }
    
    /* Page Header */
    .page-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-header-row > a {
        justify-content: center;
    }
    
    /* Action Bar */
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* Tables */
    .table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    table {
        font-size: 0.8125rem;
    }
    
    th, td {
        padding: 0.75rem 0.875rem;
    }
    
    /* Quick Actions Card */
    .quick-actions-card {
        overflow-x: hidden;
    }
    
    /* Hero Section */
    .dashboard-hero {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Proposal/Customer Items */
    .proposal-item,
    .customer-item {
        padding: 0.875rem;
    }
    
    /* Status Summary */
    .status-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mini Chart */
    .mini-chart-card {
        overflow-x: hidden;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* DataTables */
    .dataTables_wrapper {
        padding: 0.75rem 0;
    }
    
    .dataTables_filter input {
        width: 200px;
    }
    
    /* Modal */
    .modal {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SIDEBAR SYSTEM - Hamburger Menu
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sidebar Overlay - Full screen backdrop */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 0.875rem;
    border: none;
    background: var(--gray-75);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-right: 0.75rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

.mobile-menu-toggle .menu-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
    flex-shrink: 0;
}

.mobile-menu-toggle .menu-text {
    display: none;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

/* Mobile menu open state - show X and text */
body.sidebar-open .mobile-menu-toggle .menu-icon,
body.sidebar-open .mobile-menu-toggle .menu-text {
    display: none;
}

body.sidebar-open .mobile-menu-toggle .close-icon {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--gray-600);
}

body.sidebar-open .mobile-menu-toggle {
    background: var(--gray-100);
}

/* Mobile menu - show menu text when sidebar is open */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Default state - show hamburger and "Menü" text */
    .mobile-menu-toggle .menu-icon,
    .mobile-menu-toggle .menu-text {
        display: flex;
    }
    
    /* When sidebar is open - show X icon only */
    body.sidebar-open .mobile-menu-toggle .menu-icon,
    body.sidebar-open .mobile-menu-toggle .menu-text {
        display: none;
    }
    
    body.sidebar-open .mobile-menu-toggle .close-icon {
        display: block;
    }
    
    /* Sidebar opens - show text in sidebar */
    .sidebar.open .sidebar-title,
    .sidebar.open .sidebar-subtitle,
    .sidebar.open .sidebar-section-title,
    .sidebar.open .sidebar-link span {
        display: block !important;
    }
}

/* Sidebar Mobile State */
@media (max-width: 1024px) {
    /* Sidebar defaults to collapsed on tablet */
    .sidebar {
        width: var(--sidebar-collapsed);
        transition: width 0.25s var(--ease-out-expo);
    }
    
    .sidebar-title,
    .sidebar-subtitle,
    .sidebar-section-title,
    .sidebar-link span {
        display: none;
    }
    
    .main-wrapper {
        margin-left: var(--sidebar-collapsed);
        transition: margin-left 0.25s var(--ease-out-expo);
    }
}

@media (max-width: 768px) {
    /* Sidebar hidden by default on mobile, slides in from left */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s var(--ease-out-expo), width 0.25s var(--ease-out-expo);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open ~ .main-wrapper,
    .sidebar.open + .sidebar-overlay + .main-wrapper {
        margin-left: 0;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        transition: margin-left 0.25s var(--ease-out-expo);
    }
    
    /* Header adjustments for mobile */
    .main-header {
        padding: 0 0.75rem !important;
        gap: 0;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .header-search {
        display: none !important;
    }
    
    .header-right {
        gap: 0.25rem;
    }
    
    .header-user-info {
        display: none;
    }
    
    /* Main content padding */
    .main-content {
        padding: 1rem !important;
    }
    
    /* Sidebar open - show text labels on mobile */
    .sidebar.open .sidebar-title,
    .sidebar.open .sidebar-subtitle,
    .sidebar.open .sidebar-section-title,
    .sidebar.open .sidebar-link span {
        display: block !important;
    }
    
    .sidebar.open .sidebar-brand {
        justify-content: flex-start;
        padding: 1.25rem 1.25rem 1rem;
    }
    
    .sidebar.open .sidebar-link {
        justify-content: flex-start;
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }
    
    .sidebar.open .sidebar-link svg {
        flex-shrink: 0;
    }
    
    .sidebar.open .sidebar-section-title {
        padding: 0.75rem 1.25rem 0.375rem;
    }
    
    .sidebar.open .sidebar-user {
        padding: 1rem 1.25rem;
    }
    
    .sidebar.open .sidebar-user-info {
        display: block !important;
    }
    
    .sidebar.open .sidebar-footer {
        border-top: 1px solid var(--gray-200);
    }
}

@media (max-width: 480px) {
    .header-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-user {
        padding: 0.25rem;
    }
    
    .header-user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .main-header {
        padding: 0 0.5rem !important;
    }
}

/* ─── DataTables Custom Styles ─── */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_filter input {
    width: 280px;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat left 0.75rem center;
    transition: all var(--transition-fast);
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_length select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.5rem center;
    cursor: pointer;
}

.dataTables_info {
    font-size: 0.875rem;
    color: var(--gray-500);
    padding: 1rem 0;
}

.dataTables_paginate {
    padding: 1rem 0;
}

.dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 0.375rem;
}

.dataTables_paginate .paginate_button:hover:not(.disabled) {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Table Sort Icons */
.sorting::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border: 2px solid var(--gray-300);
    border-bottom: none;
    border-right: none;
    transform: rotate(-135deg);
    transition: all var(--transition-fast);
}

.sorting_asc::after {
    border-color: var(--primary-500);
    transform: rotate(-135deg) translateY(4px);
}

.sorting_desc::after {
    border-color: var(--primary-500);
    transform: rotate(45deg) translateY(-4px);
}

/* ─── Print Styles ─── */
@media print {
    .sidebar,
    .main-header,
    .action-bar,
    .no-print {
        display: none !important;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    body {
        background: white;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ─── Form Actions ─── */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD V2 - Premium Modern Dashboard Design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Dashboard Hero Section ─── */
.dashboard-hero {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
}

.hero-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.deco-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -40px;
}

.deco-2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    right: 120px;
}

.deco-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 200px;
    transform: translateY(-50%);
}

/* ─── Stats Section ─── */
.stats-section {
    margin-bottom: 1.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ─── Premium Stat Cards V2 ─── */
.stat-card-v2 {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
}

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

.stat-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card-gradient-1::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.stat-card-gradient-2::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card-gradient-3::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.stat-card-gradient-4::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

.stat-card-gradient-1 { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; }
.stat-card-gradient-2 { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: white; }
.stat-card-gradient-3 { background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%); color: white; }
.stat-card-gradient-4 { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); color: white; }

.stat-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-v2-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-v2-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-card-v2-trend.up {
    color: white;
}

.stat-card-v2-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-card-v2-badge.danger {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-card-v2-badge.success {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-card-v2-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-v2-label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
}

.stat-card-v2-progress {
    margin-top: 1rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-v2 {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-out-expo);
}

.progress-bar-v2.progress-success {
    background: rgba(255, 255, 255, 0.8);
}

.stat-card-v2-meta {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.75;
}

.stat-card-v2-chart {
    margin-top: 1rem;
    height: 40px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

/* ─── Dashboard Main Grid ─── */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ─── Content Cards V2 ─── */
.content-card-v2 {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all var(--transition-base);
}

.content-card-v2:hover {
    box-shadow: var(--shadow-md);
}

.content-card-v2-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-v2-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.content-card-v2-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.content-card-v2-title p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.title-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card-v2-body {
    padding: 0;
}

/* ─── Proposal List ─── */
.proposal-list {
    display: flex;
    flex-direction: column;
}

.proposal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.proposal-item:hover {
    background: var(--gray-50);
}

.proposal-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.proposal-item-content {
    flex: 1;
    min-width: 0;
}

.proposal-item-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.proposal-item-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-draft { background: var(--gray-400); }
.status-dot.status-ready { background: var(--info-500); }
.status-dot.status-sent { background: var(--warning-500); }
.status-dot.status-approved { background: var(--success-500); }
.status-dot.status-rejected { background: var(--danger-500); }
.status-dot.status-cancelled { background: var(--gray-500); }

.proposal-item-right {
    text-align: right;
    flex-shrink: 0;
}

.proposal-item-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.proposal-item-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ─── Customer List ─── */
.customer-list {
    display: flex;
    flex-direction: column;
}

.customer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.customer-item:hover {
    background: var(--gray-50);
}

.customer-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.customer-item-content {
    flex: 1;
    min-width: 0;
}

.customer-item-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.customer-item-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.customer-item-right {
    text-align: right;
    flex-shrink: 0;
}

.customer-item-balance {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.customer-item-balance.danger { color: var(--danger-600); }
.customer-item-balance.success { color: var(--success-600); }
.customer-item-balance.neutral { color: var(--gray-500); }

.customer-item-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.customer-item-status.active {
    background: var(--success-100);
    color: var(--success-700);
}

.customer-item-status.passive {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ─── Quick Actions Card V2 ─── */
.quick-actions-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.quick-actions-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
}

.quick-actions-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.quick-actions-header p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.quick-actions-grid {
    display: flex;
    flex-direction: column;
}

.quick-action-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.quick-action-v2:last-child {
    border-bottom: none;
}

.quick-action-v2:hover {
    background: var(--gray-50);
}

.quick-action-v2:hover .quick-action-v2-arrow {
    transform: translateX(4px);
}

.quick-action-v2-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-primary-v2 .quick-action-v2-icon { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); color: var(--primary-600); }
.quick-action-success-v2 .quick-action-v2-icon { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: var(--success-600); }
.quick-action-warning-v2 .quick-action-v2-icon { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: var(--warning-600); }
.quick-action-info-v2 .quick-action-v2-icon { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); color: var(--info-600); }

.quick-action-v2-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-action-v2-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

.quick-action-v2-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.quick-action-v2-arrow {
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

/* ─── Status Summary Card ─── */
.status-summary-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.status-summary-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-summary-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.status-summary-grid {
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-item-dot.draft { background: var(--gray-400); }
.status-item-dot.ready { background: var(--info-500); }
.status-item-dot.sent { background: var(--warning-500); }
.status-item-dot.approved { background: var(--success-500); }
.status-item-dot.rejected { background: var(--danger-500); }
.status-item-dot.cancelled { background: var(--gray-500); }

.status-item-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    flex: 1;
}

.status-item-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ─── Mini Chart Card ─── */
.mini-chart-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.mini-chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-75);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-chart-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.mini-chart-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--success-100);
    color: var(--success-700);
}

.mini-chart-body {
    padding: 1rem 1.5rem;
}

.mini-chart-svg {
    width: 100%;
    height: 80px;
}

.mini-chart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-75);
    display: flex;
    gap: 1.5rem;
}

.mini-chart-stat {
    display: flex;
    flex-direction: column;
}

.mini-chart-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.mini-chart-stat .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ─── Empty State V2 ─── */
.empty-state-v2 {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.empty-state-v2-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-75);
    border-radius: var(--radius-xl);
    color: var(--gray-400);
}

.empty-state-v2-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* ─── Text Colors ─── */
.text-danger { color: white !important; }
.text-success { color: white !important; }

/* ─── Responsive ─── */
@media (max-width: 1280px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .quick-actions-card {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-card {
        grid-column: span 1;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    
    .status-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ULTRA MOBILE RESPONSIVE - 320px, 375px, 425px
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Ultra Small Devices (320px - 374px) ─── */
@media (max-width: 374px) {
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    /* Header */
    .main-header {
        padding: 0 0.5rem !important;
    }
    
    .header-right {
        gap: 0.25rem;
    }
    
    .header-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-user {
        padding: 0.25rem;
    }
    
    .header-user-info {
        display: none;
    }
    
    .header-user-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Main Content */
    .main-content {
        padding: 0.75rem !important;
    }
    
    /* Hero Section */
    .dashboard-hero {
        padding: 1.25rem !important;
        border-radius: var(--radius-lg) !important;
    }
    
    .hero-title {
        font-size: 1.125rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .stat-card-v2 {
        padding: 1rem !important;
    }
    
    .stat-card-v2-value {
        font-size: 1.5rem !important;
    }
    
    .stat-card-v2-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Content Cards */
    .content-card,
    .content-card-v2 {
        border-radius: var(--radius-lg) !important;
    }
    
    .content-card-header,
    .content-card-v2-header {
        padding: 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .content-card-body,
    .content-card-v2-body {
        padding: 1rem !important;
    }
    
    /* Proposal/Customer Items */
    .proposal-item,
    .customer-item {
        padding: 0.75rem !important;
        flex-wrap: wrap;
    }
    
    .proposal-item-avatar,
    .customer-item-avatar {
        width: 36px;
        height: 36px;
    }
    
    .proposal-item-right,
    .customer-item-right {
        width: 100%;
        text-align: left !important;
        margin-top: 0.5rem;
        padding-left: 52px;
    }
    
    /* Quick Actions */
    .quick-action-v2 {
        padding: 0.75rem !important;
    }
    
    .quick-action-v2-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Status Summary */
    .status-summary-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }
    
    /* Page Header */
    .page-header-row {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .page-header-row > .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Action Bar */
    .action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .action-bar-left,
    .action-bar-right {
        width: 100%;
    }
    
    .search-box {
        width: 100% !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-icon {
        padding: 0.5rem;
    }
    
    /* Forms */
    .form-input,
    .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    textarea.form-input {
        min-height: 100px;
    }
    
    /* Tables */
    .table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    table {
        font-size: 0.8125rem;
    }
    
    th, td {
        padding: 0.625rem 0.75rem !important;
    }
    
    /* Badges */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    /* Modal */
    .modal {
        max-width: calc(100% - 1rem) !important;
        margin: 0.5rem;
        border-radius: var(--radius-lg) !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem !important;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
    
    /* Empty State */
    .empty-state,
    .empty-state-v2 {
        padding: 2rem 1rem !important;
    }
    
    .empty-state-icon,
    .empty-state-v2-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    /* Login Page */
    .login-card {
        padding: 1.5rem !important;
        border-radius: var(--radius-lg) !important;
    }
    
    .login-logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    /* DataTables Mobile Fixes */
    .dataTables_wrapper {
        padding: 0.5rem 0;
    }
    
    .dataTables_filter {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .dataTables_filter input {
        width: 100% !important;
    }
    
    .dataTables_length {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .dataTables_info {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .dataTables_paginate {
        padding: 0.5rem 0;
    }
}

/* ─── Small Devices (375px - 424px) ─── */
@media (min-width: 375px) and (max-width: 424px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .header-search {
        display: none;
    }
    
    .main-header {
        padding: 0 1rem !important;
    }
    
    .main-content {
        padding: 1rem !important;
    }
}

/* ─── Medium Small Devices (425px - 767px) ─── */
@media (min-width: 425px) and (max-width: 767px) {
    .header-search {
        width: 180px !important;
    }
    
    .main-header {
        padding: 0 1.25rem !important;
    }
    
    .main-content {
        padding: 1.25rem !important;
    }
}

/* ─── Mobile Menu Toggle Button (Hidden by Default) ─── */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-75);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

/* ─── Sidebar Overlay ─── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.open {
    opacity: 1;
}

/* ─── Mobile Responsive Tables ─── */
@media (max-width: 767px) {
    /* Card Table Responsive */
    .table-wrapper table.responsive-card {
        border: none;
    }
    
    .table-wrapper table.responsive-card thead {
        display: none;
    }
    
    .table-wrapper table.responsive-card tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--gray-100);
    }
    
    .table-wrapper table.responsive-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid var(--gray-75);
    }
    
    .table-wrapper table.responsive-card tbody td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
        justify-content: flex-start;
    }
    
    .table-wrapper table.responsive-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 0.8125rem;
    }
}

/* ─── Image Responsive ─── */
img {
    max-width: 100%;
    height: auto;
}

/* ─── Prevents Horizontal Scroll ─── */
* {
    max-width: 100vw;
}

/* ─── Horizontal Scroll Prevention for Specific Elements ─── */
.table-wrapper,
.proposal-list,
.customer-list,
.quick-actions-grid,
.status-summary-grid {
    overflow-x: hidden;
}

/* ─── Print Styles Enhancement ─── */
@media print {
    body {
        font-size: 12px;
        background: white !important;
    }
    
    .sidebar,
    .main-header,
    .mobile-menu-toggle,
    .sidebar-overlay,
    .action-bar,
    .no-print,
    .btn {
        display: none !important;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
    
    @page {
        margin: 1cm;
    }
}
