/* =====================================================
   AJANS PLATFORM - MODERN SaaS DASHBOARD UI
   Premium, Clean, AdminKit-inspired Design
   ===================================================== */

/* =====================================================
   GOOGLE FONTS IMPORT
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800&display=swap');

/* =====================================================
   CSS VARIABLES - MODERN PALETTE
   ===================================================== */
:root {
    /* Ana Renkler - Koyu & Nötr */
    --color-black: #111827;
    --color-gray-900: #1f2937;
    --color-gray-800: #374151;
    --color-gray-700: #4b5563;
    --color-gray-600: #6b7280;
    --color-gray-500: #9ca3af;
    --color-gray-400: #d1d5db;
    --color-gray-300: #e5e7eb;
    --color-gray-200: #f3f4f6;
    --color-gray-100: #f9fafb;
    --color-white: #ffffff;

    /* Vurgu Rengi - Modern Mavi */
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-accent-light: #eff6ff;
    --color-accent-50: #dbeafe;

    /* Durum Renkleri */
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-success-border: #a7f3d0;
    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fde68a;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;

    /* Eski değişkenler için uyumluluk */
    --primary: var(--color-accent);
    --primary-dark: var(--color-accent-hover);
    --primary-light: var(--color-accent-light);
    --secondary: var(--color-gray-600);
    --success: var(--color-success);
    --warning: var(--color-warning);
    --danger: var(--color-danger);
    --info: var(--color-accent);

    /* Metin */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Arkaplan */
    --bg-body: #f9fafb;
    --bg-white: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f3f4f6;
    --bg-dark: #111827;
    --bg-sidebar: #111827;

    /* Kenar */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Boyutlar */
    --sidebar-width: 260px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Gölge - Modern & Rafine */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

    /* Geçiş */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
}

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

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

::selection {
    background: var(--color-accent-50);
    color: var(--color-accent-hover);
}

/* =====================================================
   SCROLLBAR - Modern
   ===================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* =====================================================
   SIDEBAR - Premium Dark
   ===================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius);
    margin-bottom: 2px;
    font-size: 0.875rem;
    font-weight: 450;
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    display: none;
}

.nav-text {
    letter-spacing: -0.01em;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.user-info {
    margin-bottom: 14px;
}

.user-name {
    display: block;
    font-weight: 500;
    color: var(--color-white);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.logout-btn {
    display: block;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 36px 44px;
}

/* =====================================================
   PAGE HEADER - Clean & Bold
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
}

.page-header h1 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.page-header-left h1 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.page-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

.page-description a {
    color: var(--text-secondary);
    font-weight: 500;
}

.page-description a:hover {
    color: var(--color-accent);
}

.page-header-right,
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-header-right .form-select,
.page-header-right select {
    width: auto;
    min-width: 160px;
    padding: 9px 40px 9px 14px;
    font-size: 0.8125rem;
}

/* =====================================================
   BUTTONS - Modern & Polished
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-gray-700);
    color: var(--color-white);
    border-color: var(--color-gray-700);
}

.btn-secondary:hover {
    background: var(--color-gray-800);
    border-color: var(--color-gray-800);
    color: var(--color-white);
}

.btn-outline {
    background: var(--color-white);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--bg-surface-hover);
    border-color: var(--color-gray-400);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.inline-form {
    display: inline-block;
}

.btn-success {
    background: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: var(--color-white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-sm:hover {
    transform: none;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 0.9rem;
}

/* =====================================================
   CARDS - Soft & Elevated
   ===================================================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition);
}

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

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

.card-header h2,
.card-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.card-header-actions {
    display: flex;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding: 16px 24px 0;
    letter-spacing: -0.02em;
}

/* =====================================================
   TABLES - Clean Professional
   ===================================================== */
.table-container {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
}

.card .table-container,
.dashboard-section .table-container,
.form-section .table-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

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

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-gray-100);
    border-bottom: 1px solid var(--border-color);
}

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

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

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

.data-table .strong {
    font-weight: 500;
    color: var(--text-primary);
}

.data-table .link {
    color: var(--color-accent);
    font-weight: 500;
}

.data-table .link:hover {
    text-decoration: underline;
}

.data-table .amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.data-table .currency {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.data-table .actions {
    white-space: nowrap;
    text-align: right;
}

.data-table .actions .btn {
    margin-left: 4px;
}

.clickable-row {
    cursor: pointer;
}

/* =====================================================
   BADGES - Pill Style
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.01em;
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}
.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}
.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}
.badge-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-600);
}
.badge-primary {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Status & Priority Badges */
.status-badge,
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50px;
}

.status-talep_alindi { background: var(--color-gray-200); color: var(--color-gray-600); }
.status-yapiliyor { background: var(--color-accent-light); color: var(--color-accent); }
.status-beklemede { background: var(--color-warning-bg); color: var(--color-warning); }
.status-tamamlandi { background: var(--color-success-bg); color: var(--color-success); }

.priority-dusuk { background: var(--color-gray-200); color: var(--color-gray-600); }
.priority-normal { background: var(--color-gray-200); color: var(--color-gray-700); }
.priority-yuksek { background: var(--color-warning-bg); color: var(--color-warning); }
.priority-acil { background: var(--color-danger-bg); color: var(--color-danger); }

/* =====================================================
   FORMS - Modern & Refined
   ===================================================== */

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-page {
    max-width: 900px;
}

/* Form Card (standalone form wrapper) */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-xs);
}

/* Form Section - Card based layout */
.form-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.form-section-header {
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--color-gray-100);
}

.form-section h3,
.form-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Section title inside section (legacy support) */
.form-section > h3:first-child,
.form-section > .form-section-title:first-child {
    padding: 22px 28px 18px;
    margin: 0 0 0 0;
    border-bottom: 1px solid var(--border-light);
    background: var(--color-gray-100);
    margin-left: -28px;
    margin-right: -28px;
    margin-top: -28px;
    padding-left: 28px;
    padding-right: 28px;
    width: calc(100% + 56px);
}

.form-section-body {
    padding: 28px;
}

/* Section without header styling */
.form-section:not(:has(.form-section-header)) {
    padding: 28px;
}

.form-section-description {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Form Grid System */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    margin-bottom: 20px;
}

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

/* 3 column row */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    margin-bottom: 20px;
}

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

/* Form Group */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

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

/* Inside form-row, no bottom margin needed */
.form-row .form-group,
.form-row-3 .form-group {
    margin-bottom: 0;
}

/* Large form group (spans full width) */
.form-group-lg {
    grid-column: 1 / -1;
}

/* Form Label */
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Required field indicator */
.form-group label .required,
.form-group.required label::after {
    content: " *";
    color: var(--color-danger);
    font-weight: 400;
}

.form-group label .required {
    content: none;
}

/* Input Styles - Modern */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select,
.form-control,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: var(--color-gray-400);
    font-weight: 400;
}

/* Focus state - Modern glow */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Hover state */
input:hover:not(:focus):not(:disabled),
textarea:hover:not(:focus):not(:disabled),
select:hover:not(:focus):not(:disabled) {
    border-color: var(--color-gray-400);
}

/* Error state */
input.error,
textarea.error,
select.error,
.form-control.error,
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
    background: var(--color-gray-100);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

textarea.textarea-sm {
    min-height: 80px;
}

textarea.textarea-lg {
    min-height: 180px;
}

/* Select */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Date input adjustments */
input[type="date"] {
    padding-right: 14px;
}

/* Number input */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Help text */
.form-help,
.help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Error text */
.error-text {
    display: block;
    color: var(--color-danger);
    font-size: 0.75rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    margin-top: 32px;
}

.form-actions.actions-right {
    justify-content: flex-end;
}

.form-actions.actions-between {
    justify-content: space-between;
}

/* Standalone form actions (outside section) */
.form-page > .form-actions,
.form-container > .form-actions {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px 28px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

/* Input Group (prefix/suffix) */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group input {
    border-radius: 0;
}

.input-group input:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group input:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--color-gray-100);
    border: 1.5px solid var(--color-gray-300);
    white-space: nowrap;
}

.input-group-text:first-child {
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group-text:last-child {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Form Inline */
.form-inline {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.form-inline .form-group {
    margin-bottom: 0;
}

/* Read-only display */
.form-static {
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

/* File Input */
input[type="file"] {
    padding: 8px 14px;
    font-size: 0.8125rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 6px 14px;
    margin-right: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--color-gray-100);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--color-gray-200);
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */
.flash-messages {
    margin-bottom: 24px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-basari, .alert-success {
    background: var(--color-success-bg);
    color: #065f46;
    border-color: var(--color-success-border);
}

.alert-hata, .alert-error, .alert-danger {
    background: var(--color-danger-bg);
    color: #991b1b;
    border-color: var(--color-danger-border);
}

.alert-bilgi, .alert-info {
    background: var(--color-accent-light);
    color: #1e40af;
    border-color: #bfdbfe;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
    padding: 0 4px;
    transition: opacity var(--transition-fast);
}

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

/* =====================================================
   SEARCH & FILTER BAR
   ===================================================== */
.filter-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form .form-select,
.filter-form select {
    width: auto;
    min-width: 160px;
    max-width: 240px;
    padding: 9px 40px 9px 14px;
    font-size: 0.8125rem;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    padding: 9px 14px;
    width: 260px;
    border-radius: 50px !important;
    padding-left: 18px;
}

.search-result-info {
    padding: 12px 18px;
    background: var(--color-accent-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #1e40af;
}

.search-result-info a {
    margin-left: 8px;
    font-weight: 600;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
}

.empty-icon {
    display: none;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    padding: 0;
    border: none;
    letter-spacing: -0.02em;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 24px;
}

.empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* =====================================================
   KANBAN - Clean Board
   ===================================================== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: calc(100vh - 180px);
}

.kanban-column {
    background: var(--color-gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 14px 18px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    border-top: 3px solid var(--color-gray-400);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.column-count {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.column-content {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
}

.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

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

.kanban-card.priority-acil { border-left: 3px solid var(--color-danger); }
.kanban-card.priority-yuksek { border-left: 3px solid var(--color-warning); }
.kanban-card.priority-normal { border-left: 3px solid var(--color-gray-400); }
.kanban-card.priority-dusuk { border-left: 3px solid var(--color-gray-300); }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.company-tag {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.priority-tag {
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.card-title {
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.45;
    color: var(--text-primary);
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.card-date, .card-assignee {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.card-date.overdue {
    color: var(--color-danger);
    font-weight: 600;
}

/* Kanban states */
.kanban-ghost { opacity: 0.5; }
.kanban-chosen { box-shadow: var(--shadow-lg); }
.kanban-card.updating { opacity: 0.6; pointer-events: none; }
.kanban-card.updated { animation: none; }

/* =====================================================
   DETAIL LAYOUT
   ===================================================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 36px;
    height: fit-content;
}

/* =====================================================
   TABS
   ===================================================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    padding: 0 24px;
    gap: 4px;
}

.tab {
    padding: 13px 18px;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    font-family: inherit;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* =====================================================
   INFO GRID
   ===================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full {
    grid-column: span 2;
}

.info-item label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-item span {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 450;
}

/* =====================================================
   STAT LIST
   ===================================================== */
.stat-list {
    padding: 0 24px 24px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

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

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Grid (Dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}

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

.stat-card.warning {
    border-left: 4px solid var(--color-warning);
}

.stat-icon {
    display: none;
}

.stat-content {
    flex: 1;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .stat-total {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.stat-card .stat-detail {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   META LIST (Sidebar)
   ===================================================== */
.meta-list {
    padding: 18px 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.meta-item label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 600;
}

/* =====================================================
   QUICK ACTIONS
   ===================================================== */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   PAYMENT MONTHS
   ===================================================== */
.payment-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0 24px 18px;
}

.month-box {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--color-gray-200);
    color: var(--text-muted);
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.month-box.paid {
    background: var(--color-success-bg);
    color: var(--color-success);
}
.month-box.pending {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}
.month-box.overdue {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.payment-legend {
    display: flex;
    gap: 16px;
    padding: 0 24px 18px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.payment-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.payment-legend .dot.paid { background: var(--color-success); }
.payment-legend .dot.pending { background: var(--color-warning); }
.payment-legend .dot.overdue { background: var(--color-danger); }

/* =====================================================
   COMMENTS
   ===================================================== */
.comment-list {
    margin-bottom: 20px;
}

.comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.comment-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   FILE LIST
   ===================================================== */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--color-gray-100);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.file-item:hover {
    background: var(--color-gray-200);
    border-color: var(--border-color);
}

.file-icon {
    display: none;
}

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

.file-name {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* =====================================================
   DASHBOARD - Sections
   ===================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-section,
.payment-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

/* Section title - hem h2.section-title hem de .section-header h2 */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-gray-100);
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-header .badge {
    margin-left: 8px;
}

/* Dashboard section icindeki tablo wrapper */
.dashboard-section .table-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Dashboard section icindeki alert listesi */
.dashboard-section .alert-list {
    padding: 0;
}

.dashboard-section .alert-list .alert {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-section .alert-list .alert:last-child {
    border-bottom: none;
}

/* Alert Section & List - Dashboard */
.alert-section {
    margin-bottom: 28px;
}

.alert-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.alert-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.alert-card:hover {
    background: var(--color-gray-100);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.alert-card.alert-acil { border-left: 4px solid var(--color-danger); }
.alert-card.alert-uyari { border-left: 4px solid var(--color-warning); }
.alert-card.alert-bilgi { border-left: 4px solid var(--color-accent); }

.alert-icon {
    display: none;
}

.alert-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 450;
}

.alert-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Alert List Items */
.alert-list {
    padding: 0;
}

.alert-list-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

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

.alert-list-item:hover {
    background: rgba(59, 130, 246, 0.03);
}

.alert-list-item a {
    color: var(--text-primary);
    flex: 1;
}

.alert-list-item a:hover {
    color: var(--color-accent);
}

.alert-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 14px;
    margin-top: 5px;
    flex-shrink: 0;
}

.alert-indicator.danger { background: var(--color-danger); }
.alert-indicator.warning { background: var(--color-warning); }
.alert-indicator.info { background: var(--color-accent); }

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

.alert-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

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

/* Summary Stats - Text Only */
.summary-stats {
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.summary-value.danger { color: var(--color-danger); }
.summary-value.warning { color: var(--color-warning); }
.summary-value.success { color: var(--color-success); }

/* =====================================================
   ERROR PAGE
   ===================================================== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-gray-200);
    line-height: 1;
    letter-spacing: -0.05em;
}

.error-content h1 {
    font-size: 1.25rem;
    margin: 16px 0 8px;
    font-weight: 700;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* =====================================================
   REPORTS
   ===================================================== */
.report-links,
.report-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.report-link,
.report-nav-link {
    padding: 10px 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.report-link:hover,
.report-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    text-decoration: none;
}

.report-link.active,
.report-nav-link.active {
    color: var(--color-accent);
    background: transparent;
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

/* =====================================================
   CHECKBOX GRID (Yetki Sayfası)
   ===================================================== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
}

.checkbox-card:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.checkbox-card input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
}

.checkbox-card-content {
    flex: 1;
}

.checkbox-card-title {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.checkbox-card-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--text-muted); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }

.overdue-days {
    color: var(--color-danger);
    font-weight: 600;
}

.remaining-days.urgent {
    color: var(--color-danger);
    font-weight: 600;
}

/* Priority Dot */
.priority-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
}

.priority-dot.priority-dusuk { background: var(--color-gray-400); }
.priority-dot.priority-normal { background: var(--color-gray-500); }
.priority-dot.priority-yuksek { background: var(--color-warning); }
.priority-dot.priority-acil { background: var(--color-danger); }

/* Date Range Inputs */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range label {
    font-weight: 500;
    font-size: 0.8125rem;
    margin-right: 8px;
}

.date-range input {
    padding: 8px 12px;
}

/* =====================================================
   RESPONSIVE - Medium Screens
   ===================================================== */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-group-lg {
        grid-column: span 1;
    }

    .main-content {
        padding: 24px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
    }

    .page-header-right {
        justify-content: flex-start;
        width: 100%;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form .form-select,
    .filter-form select {
        width: 100%;
        max-width: none;
    }

    .search-input {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .payment-months {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MODAL - Premium
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray-400);
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 24px 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px 22px;
    border-top: 1px solid var(--border-light);
    background: var(--color-gray-100);
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-card h1,
.login-card h2 {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.login-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.875rem;
}

/* =====================================================
   PLATFORM MODAL (Inline Style Override)
   ===================================================== */
.platform-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =====================================================
   LOADING ANIMATION
   ===================================================== */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* =====================================================
   GENERAL POLISH
   ===================================================== */

/* Tablo icindeki small etiketleri */
.data-table td small {
    display: block;
    margin-top: 2px;
}

/* Card icindeki tablo border duzeltme */
.card > .table-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.card > .table-container:last-child {
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Tablo thead ilk/son kolon radius */
.table-container > .data-table > thead > tr > th:first-child {
    border-top-left-radius: var(--border-radius-lg);
}

.table-container > .data-table > thead > tr > th:last-child {
    border-top-right-radius: var(--border-radius-lg);
}

.card .table-container > .data-table > thead > tr > th:first-child,
.card .table-container > .data-table > thead > tr > th:last-child,
.dashboard-section .table-container > .data-table > thead > tr > th:first-child,
.dashboard-section .table-container > .data-table > thead > tr > th:last-child {
    border-radius: 0;
}

/* Clickable row cursor */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: rgba(59, 130, 246, 0.04) !important;
}

/* inline-form duzgun hizalanma */
.inline-form {
    display: inline-flex;
    vertical-align: middle;
}

/* Alert link (dashboard icindeki) */
a.alert {
    cursor: pointer;
    text-decoration: none;
}

a.alert:hover {
    text-decoration: none;
    filter: brightness(0.97);
}

/* Form container icindeki form-section son eleman */
.form-section:last-child {
    margin-bottom: 0;
}

/* Sidebar footer kullanici bilgisi */
.sidebar-footer .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Select option styling */
select option {
    padding: 8px;
}
