@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* DARK MODE (Default) */
    --bg-color: #0b0f19;
    --panel-bg: rgba(22, 27, 34, 0.6);
    --panel-bg-solid: #161b22;
    --text-primary: #f8fafc;
    --text-secondary: #8b949e;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-solid: #30363d;
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-bg-solid: #0d1117;
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: #3b82f6;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #10b981;
    --glass-bg: rgba(11, 15, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --table-header-bg: rgba(255, 255, 255, 0.05);
    --table-row-hover: rgba(255, 255, 255, 0.03);
    --scrollbar-bg: #0b0f19;
    --scrollbar-thumb: #30363d;
    --switch-bg: #30363d;
    --switch-handle: #f8fafc;
    --bg-alpha-5: rgba(255, 255, 255, 0.05);
    --bg-alpha-8: rgba(255, 255, 255, 0.08);
    --bg-alpha-10: rgba(255, 255, 255, 0.1);
    --bg-alpha-20: rgba(255, 255, 255, 0.2);
    --text-alpha-40: rgba(255, 255, 255, 0.4);
    --text-alpha-50: rgba(255, 255, 255, 0.5);
    --text-alpha-70: rgba(255, 255, 255, 0.7);
    --border-alpha-10: rgba(255, 255, 255, 0.1);
    --border-alpha-20: rgba(255, 255, 255, 0.2);
    --border-alpha-30: rgba(255, 255, 255, 0.3);
}

html.light-mode {
    /* LIGHT MODE */
    --bg-color: #f0f2f5;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --panel-bg-solid: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-solid: #cbd5e1;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-bg-solid: #ffffff;
    --input-border: rgba(0, 0, 0, 0.2);
    --input-focus: #2563eb;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --success-color: #059669;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --table-header-bg: rgba(0, 0, 0, 0.03);
    --table-row-hover: rgba(0, 0, 0, 0.02);
    --scrollbar-bg: #f0f2f5;
    --scrollbar-thumb: #cbd5e1;
    --switch-bg: #cbd5e1;
    --switch-handle: #ffffff;
    --bg-alpha-5: rgba(0, 0, 0, 0.03);
    --bg-alpha-8: rgba(0, 0, 0, 0.05);
    --bg-alpha-10: rgba(0, 0, 0, 0.06);
    --bg-alpha-20: rgba(0, 0, 0, 0.12);
    --text-alpha-40: rgba(0, 0, 0, 0.4);
    --text-alpha-50: rgba(0, 0, 0, 0.5);
    --text-alpha-70: rgba(0, 0, 0, 0.7);
    --border-alpha-10: rgba(0, 0, 0, 0.1);
    --border-alpha-20: rgba(0, 0, 0, 0.2);
    --border-alpha-30: rgba(0, 0, 0, 0.3);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-corner {
    background: var(--scrollbar-bg);
}

#blazor-error-ui {
    background: var(--danger-color);
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 4px var(--shadow-color);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
      max-width: none !important;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none !important;
}



/* Global Glass Input */
.glass-input {
    width: 100%;
      max-width: none !important;
    box-sizing: border-box;
    background: var(--bg-alpha-5);
    border: 1px solid var(--border-solid);
    padding: 0.5rem 1rem;
    min-height: 42px;
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}
.glass-input:focus {
    border-color: #0e2439 !important;
    background: var(--bg-alpha-10) !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
    outline: none !important;
}
html:not(.light-mode) .glass-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}
.glass-input::placeholder {
    color: var(--text-secondary);
}

/* ==========================================================================
   SABİT DROPDOWN (SELECT) TASARIMI (.app-select, select.glass-input, select.form-select)
   ========================================================================== */
.app-select,
select.glass-input,
select.form-select,
select.custom-select {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 42px 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

/* Light Mode Dropdown */
html.light-mode .app-select,
html.light-mode select.glass-input,
html.light-mode select.form-select,
html.light-mode select.custom-select {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230e2439' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

html.light-mode .app-select:hover,
html.light-mode select.glass-input:hover,
html.light-mode select.form-select:hover,
html.light-mode select.custom-select:hover {
    border-color: #0e2439 !important;
    box-shadow: 0 2px 6px rgba(14, 36, 57, 0.08) !important;
}

html.light-mode .app-select:focus,
html.light-mode select.glass-input:focus,
html.light-mode select.form-select:focus,
html.light-mode select.custom-select:focus {
    border-color: #0e2439 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
    outline: none !important;
}

/* Dark Mode Dropdown */
html:not(.light-mode) .app-select,
html:not(.light-mode) select.glass-input,
html:not(.light-mode) select.form-select,
html:not(.light-mode) select.custom-select {
    background-color: #161b22 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

html:not(.light-mode) .app-select:hover,
html:not(.light-mode) select.glass-input:hover,
html:not(.light-mode) select.form-select:hover,
html:not(.light-mode) select.custom-select:hover {
    border-color: #38bdf8 !important;
}

html:not(.light-mode) .app-select:focus,
html:not(.light-mode) select.glass-input:focus,
html:not(.light-mode) select.form-select:focus,
html:not(.light-mode) select.custom-select:focus {
    border-color: #38bdf8 !important;
    background-color: #161b22 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
    outline: none !important;
}

/* Dropdown Option'ları */
.app-select option,
select.glass-input option,
select.form-select option,
select.custom-select option {
    background-color: var(--panel-bg-solid, #ffffff);
    color: var(--text-primary, #0f172a);
    padding: 10px;
}

/* Global Modern Table Styles */
.table-container { 
    background: var(--panel-bg-solid); 
    border: 1px solid var(--border-solid); 
    border-radius: 16px; 
    overflow: hidden; 
    margin-top: 20px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
html.light-mode .table-container {
    border-color: #eef2f6;
}
html:not(.light-mode) .table-container {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.glass-table { 
    width: 100%;
    max-width: none !important; 
    border-collapse: separate; 
    border-spacing: 0; 
}
.glass-table th { 
    padding: 13px 18px; 
    text-align: left; 
    font-weight: 600; 
    font-size: 11.5px; 
    text-transform: uppercase; 
    letter-spacing: 0.6px; 
    border-bottom: 1px solid var(--border-solid);
}
html.light-mode .glass-table th { 
    background: #f8fafc; 
    color: #64748b; 
    border-color: #eef2f6; 
}
html:not(.light-mode) .glass-table th { 
    background: rgba(255, 255, 255, 0.03); 
    color: #94a3b8; 
    border-color: rgba(255, 255, 255, 0.06); 
}
.glass-table td { 
    padding: 14px 18px; 
    border-bottom: 1px solid var(--border-solid); 
    vertical-align: middle; 
    color: var(--text-primary); 
    font-size: 13.5px;
    transition: background 0.15s ease;
}
html.light-mode .glass-table td {
    border-color: #f1f5f9;
}
html:not(.light-mode) .glass-table td {
    border-color: rgba(255, 255, 255, 0.04);
}
.glass-table tr:hover td { 
    background: rgba(148, 163, 184, 0.06); 
}
.glass-table tr:last-child td { 
    border-bottom: none; 
}

/* Global Action Buttons */
.action-btn { 
    width: 32px; 
    height: 32px; 
    border-radius: 8px; 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
html.light-mode .action-btn { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    color: #475569; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html.light-mode .action-btn:hover { 
    background: #f1f5f9; 
    color: #0e2439; 
    border-color: #cbd5e1; 
    transform: translateY(-1px); 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
html:not(.light-mode) .action-btn { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #cbd5e1; 
}
html:not(.light-mode) .action-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff; 
    transform: translateY(-1px); 
}
.action-btn.delete:hover { 
    background: rgba(239, 68, 68, 0.1) !important; 
    border-color: rgba(239, 68, 68, 0.3) !important; 
    color: #ef4444 !important; 
}

/* ==========================================================================
   SABİT BUTON TASARIMI AİLESİ (.btn, .btn-primary, .btn-secondary, .btn-outline)
   ========================================================================== */
.btn { 
    padding: 10px 22px; 
    min-height: 42px;
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 13.5px;
    border: none; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
}
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 1. Birincil Buton (.btn-primary) - VARSAYILAN KOYU BUTON */
html.light-mode .btn-primary { 
    background: #0e2439 !important; 
    color: #ffffff !important; 
    border: none !important;
    box-shadow: 0 4px 12px rgba(14, 36, 57, 0.2) !important; 
}
html.light-mode .btn-primary:hover:not(:disabled) { 
    background: #1e3a5f !important; 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(14, 36, 57, 0.28) !important; 
}
html.light-mode .btn-primary:active:not(:disabled) { 
    transform: translateY(0); 
    box-shadow: 0 2px 6px rgba(14, 36, 57, 0.2) !important; 
}

html:not(.light-mode) .btn-primary { 
    background: #1e3a5f !important; 
    color: #ffffff !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; 
}
html:not(.light-mode) .btn-primary:hover:not(:disabled) { 
    background: #284c7a !important; 
    border-color: #38bdf8 !important;
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important; 
}

/* 2. İkincil Buton (.btn-secondary) */
html.light-mode .btn-secondary { 
    background: #f1f5f9 !important; 
    color: #334155 !important; 
    border: 1px solid #cbd5e1 !important; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html.light-mode .btn-secondary:hover:not(:disabled) { 
    background: #e2e8f0 !important; 
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

html:not(.light-mode) .btn-secondary { 
    background: rgba(255, 255, 255, 0.08) !important; 
    color: #f8fafc !important; 
    border: 1px solid rgba(255, 255, 255, 0.12) !important; 
}
html:not(.light-mode) .btn-secondary:hover:not(:disabled) { 
    background: rgba(255, 255, 255, 0.14) !important; 
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 3. Çerçeveli Buton (.btn-outline, .btn-outline-primary) */
html.light-mode .btn-outline,
html.light-mode .btn-outline-primary { 
    background: #ffffff !important; 
    color: #0e2439 !important; 
    border: 1.5px solid #cbd5e1 !important; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html.light-mode .btn-outline:hover:not(:disabled),
html.light-mode .btn-outline-primary:hover:not(:disabled) { 
    background: #f8fafc !important; 
    border-color: #0e2439 !important; 
    color: #0e2439 !important;
    box-shadow: 0 3px 8px rgba(14, 36, 57, 0.1) !important;
    transform: translateY(-1px);
}

html:not(.light-mode) .btn-outline,
html:not(.light-mode) .btn-outline-primary { 
    background: transparent !important; 
    color: #38bdf8 !important; 
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important; 
}
html:not(.light-mode) .btn-outline:hover:not(:disabled),
html:not(.light-mode) .btn-outline-primary:hover:not(:disabled) { 
    background: rgba(56, 189, 248, 0.12) !important; 
    border-color: #38bdf8 !important; 
    color: #ffffff !important;
}

/* Global Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 25px; }
.page-btn { background: var(--bg-alpha-5); border: 1px solid var(--border-solid); color: var(--text-primary); padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.page-btn:hover:not(:disabled) { background: var(--bg-alpha-10); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-info { color: var(--text-secondary); font-size: 14px; }
.page-info span { font-weight: 600; color: var(--text-primary); }

/* Global Badges */
.normal-badge { background: var(--bg-alpha-10); color: var(--text-secondary); border: 1px solid var(--border-solid); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }

.badge-code {
    font-family: monospace;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}
html.light-mode .badge-code {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}
html:not(.light-mode) .badge-code {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-tag.badge-blue {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}
.badge-tag.badge-teal {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
    border: 1px solid rgba(13, 148, 136, 0.2);
}
.badge-tag.badge-gray {
    background: var(--bg-alpha-5);
    color: var(--text-secondary);
    border: 1px solid var(--border-solid);
}

/* Global Toggle Switch */
.toggle-label { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.toggle-text { display: flex; flex-direction: column; }
.toggle-text strong { color: var(--text-primary); font-size: 14px; margin-bottom: 2px; font-weight: 600; }
.toggle-text p { color: var(--text-secondary); font-size: 12px; margin: 0; }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-solid); transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #0e2439; }
html:not(.light-mode) input:checked + .slider { background-color: #1e3a5f; }
input:checked + .slider:before { transform: translateX(20px); }

/* Modern Glass Tabs - No Frame */
.glass-tabs {
    display: inline-flex;
    gap: 8px;
}
.glass-tab {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.glass-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.glass-tab.active {
    background: #0e2439;
    color: white;
    box-shadow: 0 4px 12px rgba(14, 36, 57, 0.25);
}
html:not(.light-mode) .glass-tab.active {
    background: #1e3a5f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-tab.active-green {
    background: #0d9488;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Glass Input Search Box Tweaks */
.search-box-wrapper {
    position: relative;
    width: 350px;
    display: flex;
    align-items: center;
}
.search-box-wrapper svg.search-icon {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--text-secondary);
    pointer-events: none;
}
.search-box-wrapper .glass-input {
    width: 100%;
    max-width: none !important;
    padding-left: 42px;
    padding-right: 80px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-solid);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13.5px;
    transition: all 0.2s ease;
}
html.light-mode .search-box-wrapper .glass-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.1);
    border-color: #0e2439;
    background: #ffffff;
}
html:not(.light-mode) .search-box-wrapper .glass-input:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.05);
}
.search-box-wrapper .search-btn {
    position: absolute;
    right: 5px;
    height: 32px;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.2s ease;
}
html.light-mode .search-box-wrapper .search-btn {
    background: #0e2439;
}
html.light-mode .search-box-wrapper .search-btn:hover {
    background: #1e3a5f;
    transform: translateY(-1px);
}
html:not(.light-mode) .search-box-wrapper .search-btn {
    background: #1e3a5f;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html:not(.light-mode) .search-box-wrapper .search-btn:hover {
    background: #284c7a;
    transform: translateY(-1px);
}

/* Global Card Override for Dark Mode Compatibility */
.card {
    background: var(--panel-bg-solid) !important;
    border: 1px solid var(--border-solid) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
    color: var(--text-primary) !important;
}
html.light-mode .card {
    border-color: #eef2f6 !important;
}
html:not(.light-mode) .card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.metric-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.metric-data {
    flex: 1;
}

.metric-data h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-data h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
}

.trend {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
}

.trend.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.trend.down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.trend.neutral {
    color: #6B7280;
    background: rgba(107, 114, 128, 0.1);
}

.gradient-1 {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(37, 99, 235, 0.2);
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.gradient-3 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Dashboard Specific Layout */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-text:hover {
    text-decoration: underline;
}

.sleek-table {
    width: 100%;
      max-width: none !important;
    border-collapse: collapse;
}

.sleek-table th, .sleek-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.sleek-table th {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.02);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.amount {
    font-weight: 600;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.alert-item.warning {
    border-left: 4px solid #F59E0B;
}

.alert-item.info {
    border-left: 4px solid #3B82F6;
}

.alert-icon {
    font-size: 20px;
}

.alert-text h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.alert-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}
/* Date Picker Styling */
input[type="date"].glass-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 15px;
    position: relative;
    font-family: inherit;
}
input[type="date"].glass-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
input[type="date"].glass-input::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FF8C00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}




/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-right: 10px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-alpha-10);
    border: 1px solid var(--border-solid);
    transition: .3s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #0e2439;
    border-color: #0e2439;
}
html:not(.light-mode) input:checked + .toggle-slider {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}
input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: white;
}

/* ==========================================================================
   SABİT CHECKEDIT (KARE CHECKBOX) & TOGGLE SWITCH TASARIMI
   ========================================================================== */

/* 1. Kare CheckEdit / Checkbox (.app-check, .custom-checkbox) */
.app-check,
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
}

html.light-mode .app-check,
html.light-mode .custom-checkbox {
    background-color: #ffffff;
    border: 1.8px solid #cbd5e1;
}

html.light-mode .app-check:hover,
html.light-mode .custom-checkbox:hover {
    border-color: #0e2439 !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.1) !important;
}

html.light-mode .app-check:checked,
html.light-mode .custom-checkbox:checked {
    background-color: #0e2439 !important;
    border-color: #0e2439 !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
}

html:not(.light-mode) .app-check,
html:not(.light-mode) .custom-checkbox {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.8px solid rgba(255, 255, 255, 0.2);
}

html:not(.light-mode) .app-check:hover,
html:not(.light-mode) .custom-checkbox:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

html:not(.light-mode) .app-check:checked,
html:not(.light-mode) .custom-checkbox:checked {
    background-color: #1e3a5f !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Checkmark Tik İşareti */
.app-check::after,
.custom-checkbox::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-check:checked::after,
.custom-checkbox:checked::after {
    transform: scale(1);
}

/* 2. Toggle Switch (.app-switch, .form-check-input) */
.app-switch {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 44px;
    height: 24px;
    min-width: 44px;
    border-radius: 24px;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    background-position: left 2px center !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3.2' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

html.light-mode .app-switch {
    background-color: #cbd5e1;
    border: 1px solid #94a3b8;
}

html.light-mode .app-switch:checked {
    background-color: #0e2439 !important;
    border-color: #0e2439 !important;
    background-position: right 2px center !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
}

html:not(.light-mode) .app-switch {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html:not(.light-mode) .app-switch:checked {
    background-color: #1e3a5f !important;
    border-color: #38bdf8 !important;
    background-position: right 2px center !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Standart CheckEdit / Switch Wrapper Etiketleri */
.app-check-label,
.app-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Global Bootstrap Form Check / Switch Checked */
.form-check-input:checked {
    background-color: #0e2439 !important;
    border-color: #0e2439 !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
}
html:not(.light-mode) .form-check-input:checked {
    background-color: #1e3a5f !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}
.form-check-input:focus {
    border-color: #0e2439 !important;
    box-shadow: 0 0 0 3px rgba(14, 36, 57, 0.12) !important;
}
html:not(.light-mode) .form-check-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}



/* Global Spinner */
.spinner {
    display: inline-block;
    border: 3px solid var(--border-solid);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Elegant Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-modal {
    background: var(--panel-bg);
    border: 1px solid var(--border-solid);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-solid);
    padding-top: 20px;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Global Spinner Styles */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-alpha-10, rgba(0,0,0,0.1));
    border-top-color: var(--accent-color, #10b981);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Global Lot Action Button Styles & Animations */
.lot-action-btn {
    width: 38px;
    height: 32px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
    text-decoration: none;
}

.lot-action-btn.lot-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1.5px solid #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.lot-action-btn.lot-success:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.lot-action-btn.lot-pending {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 2px solid #ef4444 !important;
    color: #ef4444 !important;
    animation: lot-alert-pulse 1.3s infinite ease-in-out;
}

.lot-action-btn.lot-pending:hover {
    background: rgba(239, 68, 68, 0.32) !important;
    border-color: #dc2626 !important;
    transform: scale(1.08);
}

@keyframes lot-alert-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        border-color: #ef4444;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
        border-color: #ff2a2a;
        transform: scale(1.06);
        background-color: rgba(239, 68, 68, 0.28);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: #ef4444;
        transform: scale(1);
    }
}

.lot-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: lot-icon-flash 0.65s infinite alternate ease-in-out;
}

@keyframes lot-icon-flash {
    0% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}
