/**
 * AryaCloud - Ana Stil Dosyası
 * Modern, Kurumsal, Mobil Uyumlu Tasarım
 */

/* ================================
   CSS Variables - Tema Renkleri
   ================================ */
:root {
    /* Ana Renkler */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.1);
    
    /* İkincil Renkler */
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Koyu Tema */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --bg-card: #1e1e35;
    --bg-hover: #2a2a4a;
    
    /* Metin Renkleri */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --text-dark: #0f0f1a;
    
    /* Durum Renkleri */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Boyutlar */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Geçişler */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   Login Page
   ================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: aurora 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

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

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-glow);
}

.auth-logo .logo-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ================================
   Form Elements
   ================================ */
.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

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

/* form-control alias (Bootstrap compatibility) */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

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

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

.form-input-icon {
    position: relative;
}

.form-input-icon .form-input {
    padding-left: 2.75rem;
}

.form-input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-input-icon .icon svg {
    width: 18px;
    height: 18px;
}

.form-input-icon .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.form-input-icon .toggle-password:hover {
    color: var(--text-primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-footer a {
    font-size: 0.875rem;
    color: var(--primary-light);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
a.btn-primary:visited {
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

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

.btn-outline:hover {
    background: var(--primary-bg);
}

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

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:visited,
a.btn-danger,
a.btn-danger:hover,
a.btn-danger:focus,
a.btn-danger:active,
a.btn-danger:visited {
    color: white !important;
}

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:visited,
a.btn-success,
a.btn-success:hover,
a.btn-success:focus,
a.btn-success:active,
a.btn-success:visited {
    color: white !important;
}

.btn-success:hover {
    background: #16a34a;
}

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

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

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

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

/* ================================
   Alerts
   ================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

.alert-close svg {
    width: 16px;
    height: 16px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ================================
   Dashboard Layout
   ================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition-normal);
}

/* Sidebar Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    padding: 6px;
}

.sidebar-logo svg {
    width: 22px;
    height: 22px;
    color: white;
}

.sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-brand-partner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.15rem;
}

.partner-plus {
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.partner-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.partner-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.partner-initial {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}

.partner-initial:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Navigation Group - Collapsible */
.nav-group {
    margin-bottom: 0.25rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.nav-group-header:hover {
    background: var(--bg-hover);
}

.nav-group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-group-title svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.nav-group-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.nav-group.collapsed .nav-group-chevron {
    transform: rotate(-90deg);
}

.nav-group-items {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 500px;
    opacity: 1;
}

.nav-group.collapsed .nav-group-items {
    max-height: 0;
    opacity: 0;
}

/* Legacy nav-section support */
.nav-section {
    margin-bottom: 0.25rem;
}

.nav-section-title {
    padding: 0.625rem 1.25rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-section-title svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    margin: 0.125rem 0.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link .nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.nav-link .nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link:hover .nav-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

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

.nav-link.active .nav-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

/* Navigation Badge */
.nav-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

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

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

.nav-badge.danger {

.nav-badge.new {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
}
    background: var(--danger);
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 1.25rem;
}

/* Sidebar Footer - User Profile */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(0deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.sidebar-footer .nav-link {
    padding: 0.75rem;
    margin: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.sidebar-footer .nav-link:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-footer .nav-link::before {
    display: none;
}

.sidebar-footer .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

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

.sidebar-footer .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-footer .user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sidebar-footer .user-role .role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.sidebar-footer .settings-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.sidebar-footer .nav-link:hover .settings-icon {
    background: var(--primary);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Mobil menü butonu - desktop'ta gizle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

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

.header-title-wrapper {
    min-width: 0;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0; /* Sola sabit, büyümesin */
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.header-breadcrumb a {
    color: var(--text-secondary);
}

.header-breadcrumb span {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* Her zaman sağa yasla */
}

.header-search {
    position: relative;
}

.header-search input {
    width: 280px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition-fast);
}

.header-search input:focus {
    border-color: var(--primary);
    width: 320px;
}

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

.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;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.header-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-action-btn svg {
    width: 18px;
    height: 18px;
}

.header-action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    padding-right: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

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

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Page Content Scrollbar */
.page-content::-webkit-scrollbar {
    width: 8px;
}
.page-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
.page-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.page-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* ================================
   Cards
   ================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    overflow: hidden; /* İçerik taşmasını önle */
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-fast);
}

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

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

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

.stat-icon.primary {
    background: var(--primary-bg);
    color: var(--primary);
}

.stat-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-icon.info {
    background: var(--info-bg);
    color: var(--info);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.stat-change svg {
    width: 14px;
    height: 14px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

/* ================================
   Tables
   ================================ */
.table-wrapper {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.table td {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

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

/* ================================
   Badges
   ================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

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

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

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

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

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

.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* ================================
   Avatar
   ================================ */
.avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 0.875rem; }
.avatar-lg { width: 56px; height: 56px; min-width: 56px; min-height: 56px; font-size: 1.125rem; }
.avatar-xl { width: 80px; height: 80px; min-width: 80px; min-height: 80px; font-size: 1.5rem; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -0.5rem;
    border: 2px solid var(--bg-card);
}

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

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

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto 1.5rem;
}

/* ================================
   Modal
   ================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-normal);
}

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

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

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

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

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
}

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

/* ================================
   Loading & Spinner
   ================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ================================
   Pagination
   ================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination li a:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pagination li.active a,
.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination li span {
    cursor: default;
    color: var(--text-muted);
}

.pagination li a svg,
.pagination li span svg {
    width: 16px;
    height: 16px;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0;
        max-height: 100vh;
    }
    
    /* Mobil menü butonu göster - 1024px */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Header-left görünür olsun */
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem;
    }
    
    /* Header-right sağda kalsın */
    .header-right {
        margin-left: auto;
    }
    
    /* Header tablet ayarları */
    .header {
        height: 60px;
        padding: 0 1rem;
    }
    
    .header-title {
        font-size: 1.125rem;
    }
    
    .header-search input {
        width: 180px;
    }
    
    .header-search input:focus {
        width: 220px;
    }
    
    /* Mobil sidebar kapatma butonu */
    .sidebar-close {
        display: flex !important;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: var(--bg-hover);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        cursor: pointer;
        z-index: 10;
        transition: all var(--transition-fast);
    }
    
    .sidebar-close:hover,
    .sidebar-close:active {
        background: var(--danger-bg);
        color: var(--danger);
        border-color: var(--danger);
    }
    
    .sidebar-close svg {
        width: 20px;
        height: 20px;
    }
    
    /* Stats grid tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop'ta kapatma butonunu gizle */
.sidebar-close {
    display: none;
}

@media (max-width: 768px) {
    /* Header kompakt */
    .header {
        height: 56px;
        padding: 0 1rem;
    }
    
    /* Mobil menü butonu göster */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Header Left */
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem;
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .header-title-wrapper {
        min-width: 0;
        overflow: hidden;
    }
    
    .header-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Breadcrumb mobilde gizle */
    .header-breadcrumb {
        display: none !important;
    }
    
    /* Header Right */
    .header-right {
        flex-shrink: 0;
        gap: 0.5rem;
        margin-left: auto;
    }
    
    .header-search {
        display: none !important;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    
    /* User dropdown kompakt */
    .user-menu {
        padding: 0.25rem;
    }
    
    .user-menu .user-info {
        display: none;
    }
    
    .user-menu .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-menu svg {
        display: none;
    }
    
    /* Header action buttons */
    .header-action-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Page content */
    .page-content {
        padding: 1rem;
    }
    
    /* Stats grid - 2 kolon */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Stat card kompakt */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-card .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.75rem;
    }
    
    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    /* Page header butonları */
    .page-header > .d-flex {
        display: flex;
        gap: 0.5rem;
    }
    
    .page-header > .d-flex > .btn {
        flex: 1;
        justify-content: center;
    }
    
    /* Sidebar header mobilde düzenle */
    .sidebar-header {
        padding: 1rem;
        padding-right: 3.5rem;
    }
    
    .sidebar-logo {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-brand {
        font-size: 1.125rem;
    }
    
    .sidebar-brand-partner {
        display: none;
    }
    
    /* Card kompakt */
    .card-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 0.375rem !important;
    }
    
    .card-header .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 0.9375rem;
    }
    
    /* Auth card */
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    /* Quick actions mobilde düzenle */
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header daha da kompakt */
    .header {
        height: 52px;
        padding: 0 0.75rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .user-menu .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Page content daha sıkı */
    .page-content {
        padding: 0.75rem;
    }
    
    /* Stats grid - hala 2 kolon ama daha sıkı */
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-card .stat-value {
        font-size: 1.125rem;
    }
    
    /* Typography küçült */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    /* Button kompakt */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Card daha sıkı */
    .card-header {
        padding: 0.875rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    /* Welcome section */
    .welcome-section h2 {
        font-size: 1.25rem;
    }
    
    .welcome-section p {
        font-size: 0.8125rem;
    }
    
    /* Auth */
    .auth-wrapper {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    /* Sidebar daha dar */
    .sidebar {
        width: 280px;
    }
    
    .sidebar-header {
        padding: 0.875rem;
        padding-right: 3rem;
    }
    
    .sidebar-logo {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-brand {
        font-size: 1rem;
    }
    
    .sidebar-close {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .sidebar-close svg {
        width: 18px;
        height: 18px;
    }
    
    /* Nav links kompakt */
    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Sidebar footer */
    .sidebar-footer .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .sidebar-footer .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-footer .user-name {
        font-size: 0.8125rem;
    }
    
    .sidebar-footer .user-role {
        font-size: 0.6875rem;
    }
}
    .sidebar-header {
        padding: 1rem;
        padding-right: 3.5rem; /* Kapatma butonu için yer */
    }
    
    .sidebar-logo {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-brand {
        font-size: 1.125rem;
    }
    
    .sidebar-brand-partner {
        display: none;
    }
    
    /* Card kompakt */
    .card-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 0.375rem !important;
    }
    
    .card-header .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 0.9375rem;
    }
    
    /* Auth card */
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    /* Quick actions mobilde düzenle */
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header daha da kompakt */
    .header {
        height: 52px;
        padding: 0 0.5rem;
    }
    
    .header-title {
        font-size: 0.9375rem;
        max-width: 120px;
    }
    
    #menuToggle {
        width: 32px;
        height: 32px;
    }
    
    #menuToggle svg {
        width: 18px;
        height: 18px;
    }
    
    .header-action-btn {
        width: 32px;
        height: 32px;
    }
    
    .header-action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .user-menu .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Page content daha sıkı */
    .page-content {
        padding: 0.75rem;
    }
    
    /* Stats grid - hala 2 kolon ama daha sıkı */
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-card .stat-value {
        font-size: 1.125rem;
    }
    
    /* Typography küçült */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    /* Button kompakt */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Card daha sıkı */
    .card-header {
        padding: 0.875rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    /* Welcome section */
    .welcome-section h2 {
        font-size: 1.25rem;
    }
    
    .welcome-section p {
        font-size: 0.8125rem;
    }
    
    /* Auth */
    .auth-wrapper {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    /* Sidebar daha dar */
    .sidebar {
        width: 280px;
    }
    
    .sidebar-header {
        padding: 0.875rem;
        padding-right: 3rem;
    }
    
    .sidebar-logo {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-brand {
        font-size: 1rem;
    }
    
    .sidebar-close {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .sidebar-close svg {
        width: 18px;
        height: 18px;
    }
    
    /* Nav links kompakt */
    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Sidebar footer */
    .sidebar-footer .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .sidebar-footer .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-footer .user-name {
        font-size: 0.8125rem;
    }
    
    .sidebar-footer .user-role {
        font-size: 0.6875rem;
    }
}

/* ================================
   Utilities
   ================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background: var(--primary-bg) !important; }
.bg-success { background: var(--success-bg) !important; }
.bg-warning { background: var(--warning-bg) !important; }
.bg-danger { background: var(--danger-bg) !important; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

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

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

/* ========================================
   GRID SYSTEM
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row > [class*="col-"] {
    padding: 0 0.75rem;
}

.col-md-1 { width: 8.333%; }
.col-md-2 { width: 16.666%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-5 { width: 41.666%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.333%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }
.col-md-10 { width: 83.333%; }
.col-md-11 { width: 91.666%; }
.col-md-12 { width: 100%; }

@media (max-width: 768px) {
    .row > [class*="col-md-"] {
        width: 100%;
    }
}

/* ========================================
   FORM SELECT
   ======================================== */
.form-select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all var(--transition-fast);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-select:disabled {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* ========================================
   FORM HINT / HELPER TEXT
   ======================================== */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-hint.error {
    color: var(--danger);
}

.form-hint.success {
    color: var(--success);
}

/* form-text alias (Bootstrap compatibility) */
.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   INPUT GROUP
   ======================================== */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.input-group .form-select {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ========================================
   FORM TEXTAREA
   ======================================== */
.form-textarea,
textarea.form-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* ========================================
   REQUIRED FIELD INDICATOR
   ======================================== */
.form-label.required::after {
    content: " *";
    color: var(--danger);
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
/* ================================
   SIDEBAR BRAND VIA
   ================================ */
.sidebar-brand-via {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.05);
}

.sidebar-brand-via .via-text {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-brand-via .via-brands {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-brand-via .via-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sidebar-brand-via .via-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.sidebar-brand-via .via-brand-initial {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-brand-via .via-brand-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
   MOBILE OVERLAY
   ================================ */
@media (max-width: 1024px) {
    /* Mobil menü butonu göster */
    .mobile-menu-toggle { 
        display: flex !important; 
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ================================
   DROPDOWN LOGOUT DANGER
   ================================ */
.dropdown-item.logout-link {
    color: var(--danger);
}

/* ================================
   BTN İKON STİLLERİ - DÜZELTİLDİ
   ================================ */

/* Buton içindeki ikonlar */
.btn i,
.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-sm i,
.btn-sm svg {
    width: 14px;
    height: 14px;
}

/* Danger buton içindeki ikon beyaz olmalı */
.btn-danger i,
.btn-danger svg {
    color: white !important;
}

/* Success buton içindeki ikon beyaz olmalı */
.btn-success i,
.btn-success svg {
    color: white !important;
}

/* Primary buton içindeki ikon beyaz olmalı */
.btn-primary i,
.btn-primary svg {
    color: white !important;
}

/* Küçük butonlar için düzenleme */
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

/* Sadece ikon olan butonlar */
.btn-sm:has(i:only-child),
.btn-sm:has(svg:only-child) {
    padding: 0.5rem;
}

/* Lucide SVG ikonları stroke kullanıyor */
.btn-danger svg,
.btn-danger svg * {
    stroke: white !important;
}

.btn-success svg,
.btn-success svg * {
    stroke: white !important;
}

.btn-primary svg,
.btn-primary svg * {
    stroke: white !important;
}

/* Btn Block - Full Width Button */
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-block i,
.btn-block svg {
    flex-shrink: 0;
}

/* Btn Danger - Metin ve ikon rengi garantisi */
.btn-danger,
.btn-danger * {
    color: white !important;
}

.btn-danger svg,
.btn-danger svg * {
    stroke: white !important;
    fill: none !important;
}

/* ================================
   Margin Utility Classes
   ================================ */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   TOUCH DEVICE HOVER FIX - Mobil cihazlarda hover takılma sorunu
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Sadece gerçek hover destekleyen cihazlarda hover efekti */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover {
        color: var(--text-primary);
        background: var(--bg-hover);
    }
    
    .nav-link:hover .nav-icon {
        background: var(--primary-bg);
        color: var(--primary);
    }
}

/* Touch cihazlarda hover'ı devre dışı bırak */
@media (hover: none) {
    .nav-link:hover {
        color: inherit;
        background: transparent;
    }
    
    .nav-link:hover .nav-icon {
        background: var(--bg-tertiary);
        color: var(--text-muted);
    }
    
    /* Sadece aktif olan için stil uygula */
    .nav-link.active {
        color: var(--primary);
        background: var(--primary-bg);
    }
    
    .nav-link.active .nav-icon {
        background: var(--primary);
        color: white;
    }
}

/* Touch action ile hover takılmasını önle */
.nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Active state için (dokunma anı) */
.nav-link:active {
    background: var(--bg-hover);
    transition: none;
}
