/* izStat - CSS Styles */
/* Author: Dr. İzzet İNCE */

/* ==================== CSS Variables ==================== */
:root {
    /* Colors - Dark Theme (Default) */
    --bg: #0a0f0e;
    --bg-soft: #111a18;
    --bg-card: #152220;
    --bg-input: #1a2826;
    --text: #f5f5f7;
    --text-muted: #a1aaa8;
    --brand: #11998e;
    --brand-light: #38ef7d;
    --brand-dark: #0d7d74;
    --teal: #4ecdc4;
    --accent: #FF6B6B;
    --warning: #ffc107;
    --success: #38ef7d;
    --danger: #ff4757;
    --info: #54a0ff;
    --outline: rgba(17, 153, 142, 0.15);
    --shadow: 0 8px 30px rgba(0,0,0,.25);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.15);

    /* Sizing */
    --sidebar-width: 260px;
    --header-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Light Theme */
:root.light {
    --bg: #f4f7f6;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f4f3;
    --text: #18181b;
    --text-muted: #5f6b69;
    --brand: #0d7d74;
    --brand-light: #2bc466;
    --outline: rgba(17, 153, 142, 0.12);
    --shadow: 0 8px 30px rgba(0,0,0,.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
}

/* ==================== Base Styles ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== Layout ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-soft);
    border-right: 1px solid var(--outline);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--outline);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--outline);
    border-radius: 20px;
    color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(17, 153, 142, 0.08);
    color: var(--text);
}

.nav-item.active {
    background: rgba(17, 153, 142, 0.12);
    color: var(--brand);
    border-left-color: var(--brand);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--outline);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--brand);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.main-content.expanded {
    margin-left: 0;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(10, 15, 14, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 50;
}

:root.light .main-header {
    background: rgba(244, 247, 246, 0.95);
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--outline);
}

.header-title {
    flex: 1;
}

.header-title h1 {
    font-size: 20px;
    font-weight: 700;
}

.header-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* Data Status Bar */
.data-status-bar {
    display: flex;
    gap: 24px;
    padding: 12px 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--outline);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.status-item i {
    color: var(--brand);
}

.status-item strong {
    color: var(--text);
}

.status-warning {
    color: var(--warning);
}

.status-warning i {
    color: var(--warning);
}

/* Content Area */
.content-area {
    padding: 24px;
}

/* ==================== Modules ==================== */
.module {
    display: none;
}

.module.active {
    display: block;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* ==================== Cards ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(17, 153, 142, 0.3);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--brand);
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    width: 100%;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.15);
}

.form-select {
    cursor: pointer;
}

.form-select[multiple] {
    min-height: 120px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--teal));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--outline);
}

.btn-secondary:hover {
    background: var(--outline);
    border-color: var(--brand);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-outline:hover {
    background: rgba(17, 153, 142, 0.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #ff3344;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--text-muted);
}

.btn-icon:hover {
    background: var(--outline);
    color: var(--brand);
    border-color: var(--brand);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== Upload Zone ==================== */
.upload-zone {
    border: 2px dashed var(--outline);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--brand);
    background: rgba(17, 153, 142, 0.05);
}

.upload-zone i {
    font-size: 48px;
    color: var(--brand);
    margin-bottom: 16px;
}

.upload-zone p {
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-zone span {
    color: var(--text-muted);
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.upload-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(17, 153, 142, 0.05);
    border-radius: var(--radius-sm);
}

.upload-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== Tables ==================== */
.table-container {
    overflow-x: auto;
    margin-bottom: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--outline);
}

.data-table th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: rgba(17, 153, 142, 0.05);
}

.data-table td {
    color: var(--text-muted);
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 10px 14px;
    border: 1px solid var(--outline);
    text-align: center;
}

.stats-table th {
    background: var(--bg-soft);
    font-weight: 600;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* ==================== Charts ==================== */
.chart-container {
    position: relative;
    min-height: 300px;
    padding: 16px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
}

.chart-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.chart-placeholder p {
    font-size: 14px;
}

/* ==================== Sample Cards ==================== */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.sample-card {
    background: var(--bg-soft);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sample-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
}

.sample-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.sample-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.sample-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ==================== Results ==================== */
.result-section {
    margin-bottom: 24px;
}

.result-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section h4 i {
    color: var(--brand);
}

.result-box {
    background: var(--bg-soft);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.result-item {
    background: var(--bg-soft);
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.result-item .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.result-item .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hypothesis Result */
.hypothesis-result {
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.hypothesis-result.significant {
    background: rgba(56, 239, 125, 0.1);
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.hypothesis-result.not-significant {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.hypothesis-result h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.hypothesis-result.significant h5 {
    color: var(--success);
}

.hypothesis-result.not-significant h5 {
    color: var(--danger);
}

.hypothesis-result p {
    font-size: 14px;
    color: var(--text-muted);
}

.apa-format {
    background: var(--bg-input);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px;
}

.apa-format i {
    font-style: italic;
}

/* ==================== Modal ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: min(600px, 90%);
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--brand);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--outline);
    color: var(--text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.help-section {
    margin-bottom: 24px;
}

.help-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand);
}

.help-section p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.help-section ul {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.help-section li {
    margin-bottom: 4px;
}

/* ==================== Toast ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

.toast-message {
    flex: 1;
    font-size: 14px;
}

/* ==================== Empty States ==================== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ==================== Correlation Matrix ==================== */
.correlation-matrix {
    overflow-x: auto;
}

.corr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.corr-table th,
.corr-table td {
    padding: 10px;
    border: 1px solid var(--outline);
    min-width: 80px;
}

.corr-table th {
    background: var(--bg-soft);
    font-weight: 600;
}

.corr-cell {
    position: relative;
}

.corr-value {
    font-weight: 600;
}

.corr-pvalue {
    font-size: 11px;
    color: var(--text-muted);
}

/* Color scale for correlation */
.corr-cell[data-corr="strong-pos"] { background: rgba(56, 239, 125, 0.3); }
.corr-cell[data-corr="moderate-pos"] { background: rgba(56, 239, 125, 0.15); }
.corr-cell[data-corr="weak-pos"] { background: rgba(56, 239, 125, 0.05); }
.corr-cell[data-corr="weak-neg"] { background: rgba(255, 107, 107, 0.05); }
.corr-cell[data-corr="moderate-neg"] { background: rgba(255, 107, 107, 0.15); }
.corr-cell[data-corr="strong-neg"] { background: rgba(255, 107, 107, 0.3); }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .data-status-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .content-area {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sample-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: auto;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .sidebar,
    .main-header,
    .data-status-bar,
    .btn,
    .form-group,
    .toast-container {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--outline);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

/* ==================== Selection ==================== */
::selection {
    background: var(--brand);
    color: white;
}

/* ==================== Spreadsheet ==================== */
.spreadsheet-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--outline);
    margin: 0 8px;
}

.spreadsheet-container {
    overflow: auto;
    max-height: 400px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.spreadsheet {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: max-content;
}

.spreadsheet th,
.spreadsheet td {
    border: 1px solid var(--outline);
    padding: 0;
    height: 32px;
    min-width: 100px;
}

.spreadsheet th.row-number,
.spreadsheet td.row-number {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    background: var(--bg-soft);
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    user-select: none;
}

.spreadsheet th.col-header {
    background: var(--bg-soft);
    position: relative;
    padding: 0 4px;
}

.col-name-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 6px 24px 6px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.col-name-input:focus {
    outline: none;
    background: rgba(17, 153, 142, 0.1);
}

.col-name-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.col-delete-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: var(--transition);
}

.spreadsheet th.col-header:hover .col-delete-btn {
    opacity: 1;
}

.col-delete-btn:hover {
    background: var(--danger);
    color: white;
}

.spreadsheet td {
    position: relative;
}

.spreadsheet td.row-number {
    position: relative;
}

.row-delete-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: none;
    background: var(--danger);
    color: white;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    transition: var(--transition);
}

.spreadsheet tr:hover .row-delete-btn {
    opacity: 1;
}

.cell-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--text);
    text-align: right;
}

.cell-input:focus {
    outline: none;
    background: rgba(17, 153, 142, 0.1);
    box-shadow: inset 0 0 0 2px var(--brand);
}

.cell-input.text-cell {
    text-align: left;
}

.cell-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.spreadsheet-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(17, 153, 142, 0.05);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.spreadsheet-info kbd {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--outline);
}

/* Responsive spreadsheet */
@media (max-width: 768px) {
    .spreadsheet-container {
        max-height: 300px;
    }

    .spreadsheet th,
    .spreadsheet td {
        min-width: 80px;
    }

    .toolbar-divider {
        display: none;
    }
}

/* ============================================
   ASSUMPTION PANEL STYLES
   ============================================ */
.assumption-panel {
    background: var(--bg-soft);
    border: 2px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.assumption-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assumption-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1em;
}

.assumption-header h4 i {
    margin-right: 10px;
}

.assumption-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.assumption-badge.success {
    background: var(--success);
    color: white;
}

.assumption-badge.warning {
    background: var(--warning);
    color: #1a1a2e;
}

.assumption-content {
    padding: 20px;
}

.assumption-section {
    margin-bottom: 20px;
}

.assumption-section:last-child {
    margin-bottom: 0;
}

.assumption-section h5 {
    color: var(--text);
    font-size: 0.95em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assumption-section h5 i {
    color: var(--primary);
}

.assumption-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assumption-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.assumption-item.ok {
    border-left-color: var(--success);
}

.assumption-item.warn {
    border-left-color: var(--warning);
}

.assumption-item.skip {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.assumption-item .item-icon {
    font-size: 1.1em;
    width: 24px;
    text-align: center;
}

.assumption-item.ok .item-icon {
    color: var(--success);
}

.assumption-item.warn .item-icon {
    color: var(--warning);
}

.assumption-item .item-text {
    flex: 1;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.assumption-item .item-note {
    font-size: 0.85em;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 3px 10px;
    border-radius: 12px;
}

.assumption-section.recommendations {
    background: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--warning);
}

.assumption-section.recommendations h5 {
    color: var(--warning);
}

.warning-text {
    color: var(--warning);
    margin: 5px 0;
    font-size: 0.9em;
}

.warning-text i {
    margin-right: 8px;
}

.recommendation-text {
    color: var(--text);
    margin: 5px 0;
    font-size: 0.9em;
}

.recommendation-text i {
    margin-right: 8px;
    color: var(--primary);
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-tooltip i {
    color: var(--primary);
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-tooltip:hover i {
    opacity: 1;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 0.85em;
    line-height: 1.5;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    bottom: calc(100% + 10px);
}

.tooltip-content strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.05em;
}

.tooltip-content em {
    color: var(--text-muted);
    font-style: normal;
}

/* ============================================
   APA COPY SECTION STYLES
   ============================================ */
.apa-copy-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apa-format-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.apa-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.apa-text {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text);
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 10px;
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-copy i {
    margin-right: 5px;
}

/* Effect size visual indicator */
.effect-size-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.effect-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    overflow: hidden;
}

.effect-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.effect-bar-fill.small {
    width: 25%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.effect-bar-fill.medium {
    width: 50%;
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.effect-bar-fill.large {
    width: 75%;
    background: linear-gradient(90deg, #f44336, #ff5722);
}

.effect-bar-fill.very-large {
    width: 100%;
    background: linear-gradient(90deg, #9c27b0, #673ab7);
}

.effect-label {
    font-size: 0.85em;
    font-weight: 600;
    min-width: 80px;
}

/* Light theme adjustments */
:root.light .assumption-panel {
    background: #f8f9fa;
    border-color: var(--primary);
}

:root.light .assumption-item {
    background: white;
}

:root.light .tooltip-content {
    background: white;
    border-color: #ddd;
}

:root.light .apa-format-box {
    background: #f8f9fa;
}

:root.light .apa-text {
    background: white;
}

/* ============================================
   ACADEMIC REPORT STYLES
   ============================================ */
.apa-format-box.academic-report {
    background: linear-gradient(135deg, var(--bg-soft), rgba(99, 102, 241, 0.05));
    border: 2px solid var(--primary);
    border-radius: 12px;
}

.apa-format-box.academic-report .apa-label {
    color: var(--primary);
    font-size: 1em;
    font-weight: 700;
}

.apa-format-box.academic-report .apa-label i {
    margin-right: 8px;
}

.apa-text.academic {
    font-family: 'Times New Roman', Georgia, 'Noto Serif', serif;
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.apa-text.academic strong {
    color: var(--primary);
    font-weight: 700;
}

.apa-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.apa-actions .btn {
    flex: 1;
    min-width: 150px;
}

.apa-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
}

.apa-tip i {
    color: var(--warning);
    font-size: 1.1em;
    margin-top: 2px;
}

.apa-tip strong {
    color: var(--text);
}

/* Light theme adjustments for academic report */
:root.light .apa-format-box.academic-report {
    background: linear-gradient(135deg, #f8f9fa, rgba(99, 102, 241, 0.08));
}

:root.light .apa-text.academic {
    background: white;
}

:root.light .apa-tip {
    background: rgba(99, 102, 241, 0.08);
}

/* Mobile responsive for APA section */
@media (max-width: 768px) {
    .apa-copy-section {
        gap: 12px;
    }

    .apa-format-box {
        padding: 12px;
    }

    .apa-text.academic {
        font-size: 0.95em;
        padding: 15px;
        line-height: 1.7;
    }

    .apa-actions {
        flex-direction: column;
    }

    .apa-actions .btn {
        width: 100%;
    }
}

/* ============================================
   YENİ MODÜL STİLLERİ
   ============================================ */

/* Assumption Check Styles */
.assumption-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.assumption-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.assumption-section h5 {
    color: var(--text);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.stat-card.assumption-met {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.stat-card.assumption-violated {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.assumption-status {
    font-size: 0.85em;
    margin-top: 8px;
    font-weight: 600;
}

.assumption-status i {
    margin-right: 5px;
}

.stat-card.assumption-met .assumption-status {
    color: #10b981;
}

.stat-card.assumption-violated .assumption-status {
    color: #ef4444;
}

.recommendation-ok {
    color: #10b981;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.recommendation-warning {
    color: #f59e0b;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.recommendation-error {
    color: #ef4444;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

/* Outlier Styles */
.outlier-list {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-soft);
    border-radius: 8px;
}

.outlier-list h5 {
    margin-bottom: 10px;
    color: var(--text);
}

.outlier-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.outlier-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.no-outliers {
    text-align: center;
    padding: 20px;
    color: #10b981;
    font-weight: 500;
}

.no-outliers i {
    margin-right: 8px;
}

/* Effect Size Styles */
.stat-card.effect-size-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-left: 4px solid var(--primary);
}

.effect-interpretation {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Power Analysis Styles */
.stat-card.power-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
}

.stat-card.power-card .stat-value.power-adequate {
    color: #10b981;
}

.stat-card.power-card .stat-value.power-low {
    color: #f59e0b;
}

.power-interpretation {
    font-size: 0.85em;
    margin-top: 8px;
    font-weight: 500;
}

.power-interpretation .fa-check-circle {
    color: #10b981;
}

.power-interpretation .fa-exclamation-triangle {
    color: #f59e0b;
}

.stat-card.sample-size-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-left: 4px solid #10b981;
}

.stat-card.sample-size-card .stat-value {
    font-size: 2em;
    color: #10b981;
}

.sample-size-table {
    margin-top: 20px;
}

.sample-size-table h5 {
    margin-bottom: 10px;
    color: var(--text);
}

/* Transform Module Styles */
.transform-comparison {
    margin-bottom: 20px;
}

.normality-comparison h5 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1em;
}

.chart-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.chart-row .chart-container {
    flex: 1;
    min-width: 0;
}

/* Text color helpers */
.text-danger {
    color: #ef4444;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    margin: 0 -5px;
    padding: 0 5px;
}

/* Light theme adjustments for new modules */
:root.light .stat-card.assumption-met {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
}

:root.light .stat-card.assumption-violated {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
}

:root.light .recommendation-ok {
    background: rgba(16, 185, 129, 0.15);
}

:root.light .recommendation-warning {
    background: rgba(245, 158, 11, 0.15);
}

:root.light .recommendation-error {
    background: rgba(239, 68, 68, 0.15);
}

:root.light .outlier-list {
    background: #f8fafc;
}

:root.light .outlier-badge {
    background: rgba(239, 68, 68, 0.15);
}

:root.light .stat-card.effect-size-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
}

:root.light .stat-card.power-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
}

:root.light .stat-card.sample-size-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}

/* Mobile responsive for new modules */
@media (max-width: 768px) {
    .chart-row {
        flex-direction: column;
    }

    .chart-row .chart-container {
        height: 250px !important;
    }

    .outlier-values {
        justify-content: center;
    }

    .assumption-section {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
}

/* ==================== Transform Module Enhanced Styles ==================== */

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    border-left: 4px solid var(--brand);
}

.info-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.info-header svg.info-icon {
    flex-shrink: 0;
    color: var(--brand);
    opacity: 0.9;
}

.info-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.info-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--outline);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-item span {
    color: var(--text-muted);
}

.tip-item strong {
    color: var(--text);
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Transform Grid */
.transform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.transform-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.transform-option:hover {
    background: var(--bg-soft);
    border-color: var(--outline);
    transform: translateY(-2px);
}

.transform-option.selected {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15), rgba(56, 239, 125, 0.08));
    border-color: var(--brand);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.2);
}

.transform-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--brand);
}

.transform-option.selected .transform-icon {
    background: var(--brand);
    color: white;
}

.transform-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.transform-info p {
    margin: 0 0 8px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.transform-info code {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--brand-light);
}

.transform-option.selected .transform-info code {
    background: rgba(255,255,255,0.15);
    color: var(--brand-light);
}

/* Explanation Box */
.explanation-box {
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid var(--outline);
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--brand);
    font-weight: 600;
}

.explanation-header svg {
    color: var(--brand);
}

#transform-explanation-content {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

#transform-explanation-content p {
    margin: 0 0 10px 0;
}

#transform-explanation-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

#transform-explanation-content li {
    margin-bottom: 6px;
}

#transform-explanation-content strong {
    color: var(--text);
}

#transform-explanation-content code {
    padding: 2px 6px;
    background: var(--bg-card);
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--brand-light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn svg {
    vertical-align: middle;
    margin-right: 8px;
}

/* Interpretation Box */
.interpretation-box {
    padding: 20px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1), rgba(56, 239, 125, 0.05));
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid rgba(17, 153, 142, 0.2);
}

.interpretation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--brand);
}

.interpretation-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

#transform-interpretation-content {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

#transform-interpretation-content p {
    margin: 0 0 12px 0;
}

#transform-interpretation-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

#transform-interpretation-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

#transform-interpretation-content .highlight {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(17, 153, 142, 0.2);
    border-radius: 4px;
    color: var(--brand-light);
    font-weight: 500;
}

.interpretation-box .good {
    color: var(--success);
}

.interpretation-box .warning {
    color: var(--warning);
}

.interpretation-box .bad {
    color: var(--danger);
}

/* Charts Section */
.charts-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--outline);
}

.charts-section h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* Light Theme Adjustments */
:root.light .info-card {
    background: linear-gradient(135deg, #ffffff, #f8faf9);
}

:root.light .transform-option {
    background: #f0f4f3;
}

:root.light .transform-option:hover {
    background: #e8edec;
}

:root.light .transform-option.selected {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.12), rgba(56, 239, 125, 0.06));
}

:root.light .transform-icon {
    background: #ffffff;
}

:root.light .explanation-box {
    background: #f8faf9;
}

:root.light .interpretation-box {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.08), rgba(56, 239, 125, 0.04));
}

:root.light .transform-info code,
:root.light #transform-explanation-content code {
    background: #e8edec;
    color: var(--brand-dark);
}

/* Mobile Responsive for Transform */
@media (max-width: 768px) {
    .transform-grid {
        grid-template-columns: 1fr;
    }

    .info-header {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .tip-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== Additional Module Styles ==================== */

/* Section Label */
.section-label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-item:hover {
    background: var(--bg-soft);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-item input:checked + span {
    color: var(--text);
    font-weight: 500;
}

/* Stats Options */
.stats-options {
    margin: 20px 0;
}

/* Legend Grid */
.stats-legend {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--outline);
}

.stats-legend h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.legend-item {
    padding: 12px 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.legend-item strong {
    color: var(--brand);
    display: block;
    margin-bottom: 4px;
}

/* Test Selection Cards */
.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.test-card {
    padding: 20px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.test-card:hover {
    background: var(--bg-soft);
    border-color: var(--outline);
    transform: translateY(-2px);
}

.test-card.selected {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15), rgba(56, 239, 125, 0.08));
    border-color: var(--brand);
}

.test-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.test-card .test-formula {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--brand-light);
}

/* Help Accordion */
.help-accordion {
    margin-top: 20px;
}

.help-accordion-item {
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.help-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-input);
    cursor: pointer;
    transition: var(--transition);
}

.help-accordion-header:hover {
    background: var(--bg-soft);
}

.help-accordion-header h5 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-accordion-content {
    padding: 15px;
    background: var(--bg-card);
    display: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.help-accordion-content.active {
    display: block;
}

/* Warning Box */
.warning-box {
    padding: 15px 20px;
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

.warning-box p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
}

/* Success Box */
.success-box {
    padding: 15px 20px;
    background: rgba(56, 239, 125, 0.1);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: var(--transition);
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--outline);
    border-radius: 50%;
    font-weight: 600;
    color: var(--text-muted);
}

.step-item.active .step-number {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.step-item.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-item.active .step-label {
    color: var(--text);
    font-weight: 500;
}

/* Light Theme */
:root.light .checkbox-grid {
    background: #f0f4f3;
}

:root.light .checkbox-item:hover {
    background: #e8edec;
}

:root.light .legend-item {
    background: #f0f4f3;
}

:root.light .test-card {
    background: #f0f4f3;
}

:root.light .test-card:hover {
    background: #e8edec;
}

:root.light .help-accordion-header {
    background: #f0f4f3;
}

:root.light .help-accordion-header:hover {
    background: #e8edec;
}

:root.light .steps-indicator {
    background: #f0f4f3;
}

:root.light .step-number {
    background: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .test-cards {
        grid-template-columns: 1fr;
    }

    .steps-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
}
