/**
 * MyVibe Elite DSS - Custom Styles
 *
 * Modern clean light-themed DSS dashboard with responsive layout.
 *
 * @package MyVibe_Elite_DSS
 */

/* ─── CSS Variables ─────────────────────────────── */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f8fafc;
    --bg-sidebar: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #cbd5e1;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-secondary: #0284c7;
    --accent-success: #16a34a;
    --accent-warning: #ca8a04;
    --accent-danger: #dc2626;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --sidebar-width: 260px;
    --topbar-height: 64px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── App Layout ────────────────────────────────── */
.dss-app {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────── */
.dss-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, width 0.3s ease;
}

.dss-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.method-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.badge-label {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

/* ─── Main Content ──────────────────────────────── */
.dss-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.dss-main.expanded {
    margin-left: 0;
}

/* ─── Topbar ────────────────────────────────────── */
.dss-topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.2s;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

/* ─── Tab Sections ──────────────────────────────── */
.dss-tab {
    display: none;
    animation: fadeIn 0.35s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content {
    padding: 24px;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tab-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ─── Cards ─────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.card-full {
    grid-column: 1 / -1;
}

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

.card-header-flex .card-title {
    margin-bottom: 0;
}

/* ─── Dashboard Grid ────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card-stats {
    grid-column: 1 / -1;
    padding: 20px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 6px;
}

.text-highlight .stat-number {
    color: var(--accent-success);
}

/* ─── Ranking Preview ───────────────────────────── */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: var(--border-light);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #10B981, #059669); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.rank-3 .rank-badge { background: linear-gradient(135deg, #F59E0B, #D97706); }

.rank-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.rank-score {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.loading-placeholder {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Data Tables ───────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

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

.data-table th {
    background: var(--bg-primary);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.data-table td {
    font-size: 13px;
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background-color 0.15s;
}

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

.cell-id {
    color: var(--accent-primary);
    font-weight: 700;
    font-family: var(--font-mono);
}

.cell-name {
    font-family: var(--font-main);
    font-weight: 600;
}

.cell-bold {
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.cell-rank {
    text-align: center;
    font-weight: 800;
    font-size: 14px;
}

.cell-diagonal {
    background: var(--bg-input);
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

.cell-editable-matrix {
    cursor: pointer;
    background-color: #fdfdfd;
    transition: background-color 0.2s;
    font-family: var(--font-mono);
    position: relative;
}

.cell-editable-matrix:hover {
    background-color: #fffbeb !important;
}

.cell-editable-matrix:focus {
    background-color: #fef3c7 !important;
    outline: 2px solid var(--accent-warning);
    outline-offset: -2px;
}

.cell-editable input {
    width: 70px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    transition: border-color 0.2s;
}

.cell-editable input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* ─── Matrix Tables ─────────────────────────────── */
.matrix-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.matrix-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.matrix-table {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
}

.matrix-table th {
    background: var(--accent-primary);
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-table td {
    padding: 8px 14px;
    text-align: center;
    min-width: 80px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: var(--font-mono);
}

/* ─── Premium Range Sliders ─────────────────────── */
.weight-sliders {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-primary);
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.slider-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Custom Slider Styling */
.weight-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
}

.weight-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 4px;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-top: -6px;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.weight-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: var(--accent-primary-hover);
}

/* Firefox support for custom sliders */
.weight-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 4px;
}

.weight-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.weight-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    border-color: var(--accent-primary-hover);
}

/* ─── Collapsible Details Block ────────────────── */
.advanced-details {
    margin-top: 24px;
    border-color: var(--border-color);
    background: #fdfdfd;
}

.advanced-summary {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    outline: none;
    user-select: none;
}

.advanced-summary:hover {
    color: var(--accent-primary);
}

.advanced-details[open] .advanced-summary {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ─── Consistency Results ───────────────────────── */
.consistency-info {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.weights-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.weight-chip {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.consistency-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* ─── Alternatives Grid ─────────────────────────── */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.alt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.alt-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.alt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alt-id {
    background: var(--accent-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.alt-location {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.alt-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.alt-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.alt-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

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

/* ─── Results Grid ──────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ─── Chart Containers ──────────────────────────── */
.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-container.chart-lg {
    height: 480px;
}

/* ─── Badges ────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef9c3; color: #a16207; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.btn-danger:hover {
    background: #fecaca;
    color: #991b1b;
}

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-xs { padding: 6px 10px; font-size: 11px; }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-icon:hover { opacity: 1; transform: scale(1.1); }

/* ─── Forms ─────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ─── Sensitivity Config ────────────────────────── */
.sensitivity-config {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: flex-end;
    gap: 16px;
}

.sensitivity-config .btn {
    height: 42px;
}

/* ─── Modals (Popup Forms) ──────────────────────── */
.dss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dss-modal {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: slideUpModal 0.25s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

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

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

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

.modal-body {
    padding: 24px;
}

/* ─── Toast Notifications ────────────────────────── */
.dss-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-fade-out {
    animation: fadeOutToast 0.3s ease forwards;
}

@keyframes fadeOutToast {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast-success { border-left: 4px solid var(--accent-success); }
.toast-error   { border-left: 4px solid var(--accent-danger); }
.toast-warning { border-left: 4px solid var(--accent-warning); }
.toast-info    { border-left: 4px solid var(--accent-secondary); }

.toast-icon {
    font-size: 16px;
    font-weight: 800;
}

.toast-success .toast-icon { color: var(--accent-success); }
.toast-error .toast-icon   { color: var(--accent-danger); }
.toast-warning .toast-icon { color: var(--accent-warning); }
.toast-info .toast-icon    { color: var(--accent-secondary); }

.toast-message {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── Responsiveness ────────────────────────────── */
@media (max-width: 1024px) {
    .dss-sidebar {
        width: 70px;
    }
    .dss-sidebar .logo-text,
    .dss-sidebar .nav-label,
    .dss-sidebar .method-badge {
        display: none;
    }
    .dss-main {
        margin-left: 70px;
    }
    .dss-sidebar:hover {
        width: var(--sidebar-width);
    }
    .dss-sidebar:hover .logo-text,
    .dss-sidebar:hover .nav-label,
    .dss-sidebar:hover .method-badge {
        display: flex;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dss-main {
        margin-left: 0;
    }
    .dss-sidebar {
        transform: translateX(-100%);
    }
    .dss-sidebar.active {
        transform: translateX(0);
        width: var(--sidebar-width);
    }
    .dss-sidebar.active .logo-text,
    .dss-sidebar.active .nav-label,
    .dss-sidebar.active .method-badge {
        display: flex;
    }
    .sensitivity-config {
        grid-template-columns: 1fr;
    }
}
