:root {
    --color-bg: #0b0c10;
    --color-bg-elevated: #161925;
    --color-border-subtle: #262a3b;
    --color-accent: #4f8cff;
    --color-accent-soft: #1f355f;
    --color-text-primary: #f5f7ff;
    --color-text-muted: #a0a4b8;
    --color-danger: #ff4d4f;
    --color-success: #3ac47d;

    --radius-lg: 14px;
    --radius-md: 10px;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;

    --panel-bg: var(--color-surface, #111827);
    --panel-border: var(--color-border, #1f2937);
    --panel-radius: 16px;
    --panel-padding: 20px;
    --tab-bg: transparent;
    --tab-active-bg: var(--color-accent-soft, #111827);
    --tab-hover-bg: var(--color-surface-soft, #111827);
    --tab-border-radius: 999px;
    --metric-card-bg: var(--color-surface-soft, #111827);
    --metric-card-border: var(--color-border-subtle, #1f2937);
    --code-bg: var(--color-surface-deep, #020617);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

/* Header */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-logo {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-header-username {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Genel layout */

.app-main {
    padding: 1.5rem;
}

/* Butonlar */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease,
        transform 0.1s ease;
}

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

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border-subtle);
}

.btn-outline:hover {
    border-color: var(--color-accent);
}

/* Basit grid (panel için işimize yarayacak) */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

/* Kart bileşeni */

.card {
    background-color: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

/* Form elemanları */

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    background-color: #0f111a;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Mobil uyum */

@media (max-width: 768px) {
    .app-main {
        padding: 1rem;
    }

    .app-header {
        padding: 0.6rem 1rem;
    }
}

/* =========================================================
   Proje detay sayfası layout
   ========================================================= */

.project-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

/* SOL SÜTUN: SIDEBAR */
.project-sidebar {
    width: 260px;
    flex-shrink: 0;

    /* Sticky davranış */
    position: sticky;
    top: 1rem;          /* Header ile aradaki mesafe, istersen 0 yapabilirsin */
    align-self: flex-start;
}

/* SAĞ SÜTUN: ANA İÇERİK */
.project-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar kartı */
.sidebar-wrapper {
    background-color: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: 1rem 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Sidebar bölümleri */
.sidebar-section {
    margin-top: 1.25rem;
}

.sidebar-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* Proje değiştir select */
.sidebar-section select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    background-color: #0f111a;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.sidebar-section select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Menü linkleri */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li + li {
    margin-top: 0.25rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.sidebar-menu a:hover {
    background-color: var(--color-accent-soft);
    color: var(--color-text-primary);
    transform: translateX(1px);
}

/* Ana içerik başlığı, açıklama */
.project-main-header {
    margin-bottom: 1rem;
}

.project-main-title {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}

.project-main-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/********************************************
 * INFO BOX – VSCode Tarzı
 ********************************************/

.info-box {
    margin-top: 0.75rem;
    border-radius: 10px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: 0.25s ease;
}

/* HEADER */
.info-header {
    background: linear-gradient(90deg, #262b34, #20242b);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-title {
    font-size: 0.95rem;
    color: #eaeaea;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    opacity: 0.85;
    font-size: 1rem;
}

.info-toggle {
    color: #bbb;
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

/* CONTENT */
.info-content {
    padding: 0.9rem 1.1rem 1.1rem;
    display: block;
}

.info-box.collapsed .info-content {
    display: none;
}

.info-box.collapsed .info-toggle {
    transform: rotate(-90deg);
}

/* SECTION */
.info-section {
    margin-bottom: 1rem;
    border-left: 3px solid rgba(255,255,255,0.08);
    padding-left: 0.75rem;
}

.info-section h3 {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #dcdcdc;
}

.info-section p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* LIST */
.info-list {
    margin: 0;
    padding-left: 1.1rem;
}

.info-list li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* HYPERPARAMETER TAGS */
.param-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: rgba(255,255,255,0.08);
    color: #d6d6d6;
    font-size: 0.75rem;
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease;
}

.tag:hover {
    background: rgba(255,255,255,0.18);
}

/* Yardımcı */
.w-100 {
    width: 100%;
}

/* Mobil görünüm: sidebar üstte, içerik altta */
@media (max-width: 992px) {
    .project-layout {
        flex-direction: column;
    }

    .project-sidebar {
        width: 100%;
        position: static;   /* Mobilde sticky olmasın */
        top: auto;
    }
}

/* =========================================================
   Genel panel kart tasarımı (dataset + algoritma sekmeleri)
   ========================================================= */

.panel-card {
    background-color: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: 1rem 1.1rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

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

.panel-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-card-body {
    font-size: 0.9rem;
}

/* Badge stilleri */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.badge-success {
    background-color: rgba(58, 196, 125, 0.15);
    color: var(--color-success);
}

.badge-muted {
    background-color: rgba(160, 164, 184, 0.15);
    color: var(--color-text-muted);
}

/* Dataset özet kutuları */
.dataset-summary-box {
    margin-top: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-md);
    background-color: #101320;
    border: 1px solid var(--color-border-subtle);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.summary-row + .summary-row {
    margin-top: 0.25rem;
}

.summary-label {
    color: var(--color-text-muted);
}

.summary-value {
    color: var(--color-text-primary);
}

/* Form ve metin yardımcıları */
.panel-text {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.panel-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.dataset-upload-form .input-label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.dataset-upload-form .input-dark {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

.dataset-upload-form .input-dark:focus {
    outline: none;
    border-color: var(--color-accent);
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Tablo önizleme */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.4rem;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.preview-table thead {
    background-color: #141827;
}

.preview-table th,
.preview-table td {
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--color-border-subtle);
    white-space: nowrap;
}

.preview-table th {
    text-align: left;
    color: var(--color-text-primary);
}

.preview-table td {
    color: var(--color-text-muted);
}

.dataset-panels .panel-card + .panel-card {
    margin-top: 0.9rem;
}

/* Metinsel sütun listesi */
.text-columns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-text-primary);
}

.checkbox-inline input[type="checkbox"] {
    accent-color: var(--color-accent);
}

.label-histogram {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.label-histogram-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 40px;
}

.label-histogram-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--color-accent), rgba(79, 140, 255, 0.2));
    transition: height 0.2s ease;
}

.label-histogram-bar-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ------------------ ALGORITHM PANEL ------------------ */

.algorithm-panel {
    background: var(--panel-bg);
    border-radius: var(--panel-radius);
    border: 1px solid var(--panel-border);
    padding: var(--panel-padding);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.algorithm-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.algorithm-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* TAB BAR */

.algorithm-config-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--panel-border);
}

.algorithm-config-tabs::-webkit-scrollbar {
    height: 4px;
}

.algorithm-config-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.config-tab {
    padding: 0.35rem 0.9rem;
    border-radius: var(--tab-border-radius);
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    background: var(--tab-bg);
    color: inherit;
    opacity: 0.8;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.config-tab:hover {
    background: var(--tab-hover-bg);
    border-color: var(--panel-border);
    opacity: 1;
}

.config-tab.active {
    background: var(--tab-active-bg);
    border-color: var(--color-accent, #3b82f6);
    opacity: 1;
}

/* METRICS GRID */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.metric-card {
    background: var(--metric-card-bg);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--metric-card-border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* TRAIN / TEST TABS */

.train-test-tabs {
    margin-top: 1.5rem;
}

.tt-tab-header {
    display: inline-flex;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.15rem;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 0.75rem;
}

.tt-btn {
    border: none;
    background: transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.tt-btn.active {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

.tt-content {
    margin-top: 0.25rem;
}

.hidden {
    display: none !important;
}

/* METRIC TABLE */

.metric-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.metric-table th,
.metric-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--panel-border);
}

.metric-table th {
    text-align: left;
    opacity: 0.7;
}

/* PLOTS */

.plots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.plot-box {
    background: var(--metric-card-bg);
    border-radius: 12px;
    border: 1px solid var(--metric-card-border);
    padding: 0.75rem;
}

.plot-box h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.plot-box img {
    width: 100%;
    border-radius: 8px;
}

/********************************************
 * VSCode Level – Sıkı Kod Paneli
 ********************************************/

/* PANEL */
.code-panel {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #1e1e1e;
    overflow: hidden;
}

/* PANEL BAŞLIK */
.code-header {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    background: #262626;
    color: #e4e4e4;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ANA KOD BLOĞU */
.code-block {
    margin: 0;
    padding: 0.25rem 0;
    background: #1e1e1e;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.1rem;
    overflow-x: auto;
}

/********************************************
 * SATIR + NUMARA BAR
 ********************************************/
.code-line {
    display: flex;
    align-items: center;
    white-space: pre;
    margin: 0;
    padding: 0;                   /* hiçbir ekstra boşluk yok */
    line-height: 1.1rem;          /* tek gerçek satır yüksekliği */
}

/* Sol numara bloğu */
.code-line-number {
    width: 2.8rem;
    min-width: 2.8rem;

    display: flex;
    justify-content: flex-end;
    padding-right: 0.6rem;

    color: #6d7280;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);

    font-size: 0.72rem;
    user-select: none;

    line-height: inherit;         /* satır ile aynı */
}

/* Kod metni */
.code-line-text {
    color: #d4d4d4;
    padding-left: 0.6rem;
    line-height: inherit;         /* En önemli eşitleme */
    font-size: 0.82rem;
}

/********************************************
 * SCROLLBAR - VSCode gibi
 ********************************************/
.code-block::-webkit-scrollbar {
    height: 9px;
}
.code-block::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 5px;
}
.code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.28);
}

/********************************************
 * MODEL İNDİRME BUTONU
 ********************************************/
.model-download {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #1b1b1b;
    padding: 0.55rem 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.project-dashboard {
    padding: 20px;
}

/* Bölüm başlığı */
.dashboard-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.dashboard-subtitle {
    opacity: 0.7;
    margin-bottom: 25px;
}

/* Grid */
.dashboard-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Kart */
.dashboard-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
    transition: 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(0,150,255,0.25);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* En iyi model alanı */
.dashboard-section-highlight {
    margin-top: 40px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Alt metrik kartları */
.dashboard-best-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    text-align: center;
}

/* Premium Gradient Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #00aaff, #0066ff);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.35);
    filter: brightness(1.15);
}

/* Soft Secondary Button (outline) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.12);
}

/* Disabled */
.btn-disabled,
.btn-secondary.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* Sayfa ortalama */
.panel-wrapper {
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* İç container */
.panel-container {
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 0.4s ease;
}

/* Header düzeni */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Proje listesi - Responsive Grid */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Proje Kartı */
.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(0, 150, 255, 0.25);
}

/* Kart içi */
.project-card-body {
    margin-bottom: 18px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-date {
    font-size: 14px;
    opacity: 0.7;
    color: var(--text-secondary);
}

.project-card-footer {
    display: flex;
    justify-content: flex-end;
}

/* Boş liste */
.empty-text {
    opacity: 0.7;
    text-align: center;
    font-size: 16px;
}

/* Fade animasyonu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.app-logo-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

.app-logo-text {
    font-size: 18px;
    font-weight: 700;
}

/* Wrapper */
.upload-wrapper { width: 100%; }

/* Dropzone Alanı */
.upload-dropzone {
    display: block;
    width: 100%;
    padding: 28px;
    border: 2px dashed rgba(255, 255, 255, 0.20);
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: 0.25s ease;
    position: relative;
}

/* Drag-hover efekti */
.upload-dropzone.dragover {
    border-color: var(--accent, #0096ff);
    background: rgba(0, 150, 255, 0.08);
    transform: scale(1.02);
}

/* Input tamamen gizlendi */
.upload-dropzone input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    pointer-events: none;
}

/* İçerik alanı */
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Icon */
.dropzone-icon {
    width: 42px;
    opacity: 0.7;
}

/* Başlık */
.dropzone-title {
    font-size: 16px;
    font-weight: 600;
}

/* İpucu */
.dropzone-hint {
    font-size: 13px;
    opacity: 0.6;
}

/* Dosya adı */
.dropzone-filename {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.8;
}

/* Benzersiz dark select */
.select-dark {
    width: 100%;
    padding: 10px 12px;
    background: rgba(35, 35, 45, 0.85);
    color: #f2f2f2;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: 0.25s ease;
    backdrop-filter: blur(4px);
}

/* Hover ve focus */
.select-dark:hover {
    border-color: var(--accent, #0096ff);
}

.select-dark:focus {
    outline: none;
    border-color: var(--accent, #0096ff);
    box-shadow: 0 0 6px rgba(0, 150, 255, 0.4);
}

/* OPTION DARK MODE */
.select-dark option {
    background: #1e1e27 !important;
    color: #fff !important;
}

/* Seçili option */
.select-dark option:checked {
    background: #2f4cff !important;
    color: #fff !important;
}

/* Hover efekt (Chrome hariç tüm browserlarda) */
.select-dark option:hover {
    background: rgba(0, 150, 255, 0.4) !important;
}

.roc-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px;
    width: 300px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.roc-title {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.roc-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
}

.metric-image-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: var(--shadow-soft);
}

.metric-image-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-strong);
}

.metric-image-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.metric-thumb {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #0a0a0a;
}

/* MODAL */
.img-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.85);
}

.img-modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
}

.img-modal-close {
    position: absolute;
    top: 20px; right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.img-modal-close:hover {
    color: #d9534f;
}
.metric-image-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.metric-image-row .metric-image-card {
    flex: 1 1 240px;
}