/* ========================================
   TEKLIF YÖNETIM SISTEMI - ANA STIL DOSYASI
   ======================================== */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES - LIGHT THEME (DEFAULT)
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    
    /* Secondary Colors */
    --secondary: #10B981;
    --secondary-light: #34D399;
    --secondary-dark: #059669;
    
    /* Accent Colors */
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-dark: #D97706;
    
    /* Danger/Error */
    --danger: #EF4444;
    --danger-light: #F87171;
    --danger-dark: #DC2626;
    
    /* Warning */
    --warning: #F59E0B;
    
    /* Info */
    --info: #06B6D4;
    
    /* Neutral Colors */
    --dark: #1E293B;
    --dark-light: #334155;
    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-dark: #1E293B;
    
    /* Card & Surface Colors */
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --surface-hover: #F1F5F9;
    
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;
    
    /* Input Colors */
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --input-focus-border: #2563EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Font Family */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] {
    /* Neutral Colors - Inverted */
    --gray-900: #F8FAFC;
    --gray-800: #F1F5F9;
    --gray-700: #E2E8F0;
    --gray-600: #CBD5E1;
    --gray-500: #94A3B8;
    --gray-400: #64748B;
    --gray-300: #475569;
    --gray-200: #334155;
    --gray-100: #1E293B;
    --gray-50: #0F172A;
    --white: #0F172A;
    
    /* Background Colors */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-dark: #F8FAFC;
    
    /* Card & Surface Colors */
    --card-bg: #1E293B;
    --card-border: #334155;
    --surface-hover: #334155;
    
    /* Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-inverse: #0F172A;
    
    /* Input Colors */
    --input-bg: #1E293B;
    --input-border: #334155;
    --input-focus-border: #3B82F6;
    
    /* Shadows - Darker for dark theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--gray-500);
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input.error {
    border-color: var(--danger);
}

.form-input.success {
    border-color: var(--secondary);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 3rem;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-icon-wrapper .input-icon-right {
    left: auto;
    right: 1rem;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' 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");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--card-border);
    background: var(--surface-hover);
}

/* Stat Cards - Minimal Design */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.stat-icon.secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.login-brand {
    margin-bottom: 3rem;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-brand span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.login-features {
    max-width: 400px;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.login-feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.login-feature-text p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.5;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--card-bg);
    position: relative;
    z-index: 1;
    transition: background-color var(--transition);
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.login-form {
    margin-bottom: 2rem;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.login-divider span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--input-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--input-bg);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.login-footer {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   SIDEBAR
   ======================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-brand-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-brand-text span {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-300);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-item i {
    width: 20px;
    font-size: 1.125rem;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.sidebar-user-info span {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.sidebar-user-menu {
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-user-menu:hover {
    color: var(--white);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: calc(100vw - 2rem);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--secondary);
}

.notification-success i {
    color: var(--secondary);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-error i {
    color: var(--danger);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-info i {
    color: var(--primary);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-warning i {
    color: var(--warning);
}

@media (max-width: 480px) {
    .notification {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--gray-600);
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-title p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 280px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    background: var(--surface-hover);
    color: var(--text-primary);
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--gray-500);
    position: relative;
    transition: var(--transition);
}

.header-action-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.header-action-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.header-user:hover {
    background: var(--gray-100);
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--surface-hover);
    border-bottom: 2px solid var(--card-border);
}

.table td {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--surface-hover);
}

.table-customer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

.table-customer-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-customer-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* ========================================
   PACKAGES PAGE
   ======================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--card-border);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.package-card.featured {
    border-color: var(--primary);
}

.package-card.featured::before {
    content: 'Popüler';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.package-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 1.5rem;
}

.package-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.package-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.package-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.package-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.package-price .period {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.package-features {
    margin-bottom: 1.5rem;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.package-feature i {
    width: 20px;
    color: var(--secondary);
}

.package-feature.disabled {
    color: var(--text-muted);
}

.package-feature.disabled i {
    color: var(--text-muted);
}

/* ========================================
   PROPOSAL WIZARD
   ======================================== */
.wizard-container {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.wizard-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 2rem;
    color: var(--white);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.wizard-step.active .wizard-step-number {
    background: var(--primary);
}

.wizard-step.completed .wizard-step-number {
    background: var(--secondary);
}

.wizard-step-label {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.wizard-step.active .wizard-step-label {
    opacity: 1;
    font-weight: 500;
}

.wizard-body {
    padding: 2rem;
}

.wizard-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
}

/* ========================================
   TEMPLATES GRID
   ======================================== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.template-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--card-border);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-card.selected {
    border-color: var(--primary);
}

.template-preview {
    height: 200px;
    background: var(--surface-hover);
    position: relative;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-info {
    padding: 1rem;
}

.template-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.template-category {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   PROPOSALS LIST
   ======================================== */
.proposals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.proposals-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-hover);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.proposal-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.proposal-item:hover {
    box-shadow: var(--shadow-md);
}

.proposal-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.proposal-info {
    flex: 1;
}

.proposal-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.proposal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.proposal-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.proposal-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.proposal-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   MODAL
   ======================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--surface-hover);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.theme-toggle:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* ========================================
   RESPONSIVE - TABLET (1024px and below)
   ======================================== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Header adjustments */
    .main-header {
        padding: 1rem 1.5rem;
    }
    
    .page-title h1 {
        font-size: 1.25rem;
    }
    
    .page-title p {
        font-size: 0.8125rem;
    }
    
    /* Table scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    /* Base adjustments */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Login Page */
    .login-page {
        flex-direction: column;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .login-form-header h2 {
        font-size: 1.5rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    /* Templates */
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Header */
    .main-header {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
    }
    
    .page-title h1 {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .page-title p {
        font-size: 0.75rem;
        display: none;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .header-search {
        display: none;
    }
    
    .header-right .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .header-right .btn span {
        display: none;
    }
    
    .header-right .btn i {
        margin: 0;
    }
    
    /* Page Content */
    .page-content {
        padding: 1rem;
    }
    
    /* Wizard */
    .wizard-container {
        border-radius: var(--radius-lg);
    }
    
    .wizard-header {
        padding: 1.5rem 1rem;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .wizard-step {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .wizard-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .wizard-body {
        padding: 1.5rem 1rem;
    }
    
    .wizard-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wizard-footer .btn {
        width: 100%;
    }
    
    /* Proposals */
    .proposals-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .proposals-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .proposal-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }
    
    .proposal-info {
        width: 100%;
    }
    
    .proposal-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .proposal-amount {
        margin-top: 0;
    }
    
    .proposal-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Forms */
    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-select {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    /* Modal */
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Tables */
    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .table-customer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-customer-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    /* Header */
    .main-header {
        padding: 0.75rem;
    }
    
    .page-title h1 {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    /* Login */
    .login-right {
        padding: 1.5rem 1rem;
    }
    
    .login-form-header h2 {
        font-size: 1.25rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    /* Stats */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Cards */
    .card {
        border-radius: var(--radius);
    }
    
    /* Packages */
    .package-card {
        padding: 1.25rem;
    }
    
    .package-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .package-name {
        font-size: 1.125rem;
    }
    
    .package-price .amount {
        font-size: 2rem;
    }
    
    /* Sidebar */
    .sidebar {
        width: 100%;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-nav {
        padding: 1rem 0.75rem;
    }
    
    .nav-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .sidebar-footer {
        padding: 1rem;
    }
    
    /* Page Content */
    .page-content {
        padding: 0.75rem;
    }
    
    /* Proposals */
    .proposal-item {
        padding: 0.875rem;
    }
    
    .proposal-info h4 {
        font-size: 0.9375rem;
    }
    
    .proposal-meta {
        font-size: 0.75rem;
    }
    
    /* Buttons in rows */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

/* ========================================
   TOUCH FRIENDLY STYLES
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-item {
        min-height: 44px;
    }
    
    .form-checkbox input {
        width: 22px;
        height: 22px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .package-card:hover {
        transform: none;
    }
    
    .template-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-item:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ========================================
   UTILITY CLASSES FOR MOBILE
   ======================================== */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-flex-col {
        flex-direction: column !important;
    }
    
    .mobile-gap-sm {
        gap: 0.5rem !important;
    }
}

/* ========================================
   SAFE AREA INSETS (for notched phones)
   ======================================== */
@supports (padding: max(0px)) {
    .main-content {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .sidebar {
        padding-left: max(0px, env(safe-area-inset-left));
    }
    
    .main-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .page-content {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sidebar,
    .main-header,
    .menu-toggle,
    .theme-toggle,
    .btn,
    .header-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

