/* ============================================================
   ENBIC DASHBOARD — style.css
   Tema Light — colore base #800e19
   Versione: 2.0
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

/* ============================================================
   CSS VARIABLES — Light Theme
============================================================ */
:root {
    --bg:           #f5f0f0;
    --bg-panel:     #ffffff;
    --bg-card:      #ffffff;
    --bg-input:     #faf7f7;
    --bg-hover:     #f9f0f1;
    --border:       #e8d8da;
    --border-light: #f0e4e6;
    --border-focus: #800e19;
    --accent:       #800e19;
    --accent-dim:   #f9e8ea;
    --accent-glow:  #800e1920;
    --accent-hover: #9e1120;
    --accent-dark:  #5c0a12;
    --text:         #1a0305;
    --text-muted:   #9e7a7e;
    --text-dim:     #6b4548;
    --success:      #1a7a3f;
    --success-bg:   #eaf5ef;
    --warning:      #8a5a00;
    --warning-bg:   #fdf3e0;
    --error:        #c0392b;
    --error-bg:     #fdf0ef;
    --info:         #1a5fa0;
    --info-bg:      #e8f1fb;
    --sidebar-w:    260px;
    --header-h:     60px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indeterminate {
    0%   { margin-left: -40%; }
    100% { margin-left: 100%; }
}

/* ============================================================
   LOGIN PAGE
============================================================ */
body.page-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9f0f1 0%, #f0e4e6 50%, #f5f0f0 100%);
    position: relative;
}

body.page-login::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

body.page-login::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #800e1915 0%, transparent 70%);
    pointer-events: none;
}

.login-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 0 24px;
    animation: fadeUp 0.5s ease both;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px #800e1930);
}

.login-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
}

.login-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(128,14,25,0.08), 0 1px 0 rgba(255,255,255,0.8);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.login-footer span { color: var(--accent); }

.version-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.6;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-group, .modal-form-group { margin-bottom: 18px; }

.form-label, .modal-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.form-input-wrap { position: relative; }

.form-input-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
    pointer-events: none;
}

.form-input-wrap:focus-within i { color: var(--accent); }

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 13px 12px 38px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #fff;
}

.form-input::placeholder { color: var(--text-muted); }

.toggle-pass {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-pass:hover { color: var(--accent); }

/* ============================================================
   ALERT
============================================================ */
.alert {
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 18px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.3s ease both;
}

.alert.error  { background: var(--error-bg);   border: 1px solid var(--error);   color: var(--error);   display: flex; }
.alert.success{ background: var(--success-bg); border: 1px solid var(--success); color: var(--success); display: flex; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn i { font-size: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

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

.btn-outline  { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-outline:hover:not(:disabled)  { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-ghost    { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover:not(:disabled)    { color: var(--text); background: var(--bg-hover); }

.btn-success  { background: transparent; color: var(--success); border-color: var(--success); }
.btn-success:hover:not(:disabled)  { background: var(--success-bg); }

.btn-danger   { background: transparent; color: var(--error); border-color: var(--error); }
.btn-danger:hover:not(:disabled)   { background: var(--error-bg); }

/* Login button */
.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-login .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-login.loading .spinner  { display: block; }
.btn-login.loading .btn-text { display: none; }

/* ============================================================
   HEADER
============================================================ */
.header {
    height: var(--header-h);
    background: var(--accent);
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(128,14,25,0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.header-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
}

.header-cohort-select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    padding: 6px 12px;
    outline: none;
    cursor: pointer;
    min-width: 260px;
    transition: border-color 0.2s, background 0.2s;
}

.header-cohort-select:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}

.header-cohort-select option { background: var(--accent-dark); color: #fff; }

.header-spacer { flex: 1; }

.header-sync-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.header-sync-btn:hover { background: rgba(255,255,255,0.25); }
.header-sync-btn i { font-size: 12px; }
.header-sync-btn.spinning i { animation: spin 1s linear infinite; }

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.header-user:hover { background: rgba(255,255,255,0.15); }

.header-user-avatar {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.header-user-name { font-size: 12px; color: rgba(255,255,255,0.85); }

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 180px;
    padding: 6px;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(128,14,25,0.12);
}

.header-user:hover .header-user-dropdown { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-item.danger:hover { background: var(--error-bg); color: var(--error); }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   LAYOUT
============================================================ */
.layout {
    display: flex;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px 5px;
    margin-top: 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    border-radius: 9px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
    user-select: none;
}

.sidebar-item i { width: 16px; text-align: center; font-size: 13px; }

.sidebar-item:hover { background: var(--bg-hover); color: var(--text); }

.sidebar-item.active {
    background: var(--accent-dim);
    border-color: #e8b8bc;
    color: var(--accent);
}

.sidebar-item.active i { color: var(--accent); }

.sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   MAIN
============================================================ */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 28px;
    min-width: 0;
}

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
}

.page-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   STATS
============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeUp 0.4s ease both;
    box-shadow: 0 1px 4px rgba(128,14,25,0.05);
}

.stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.stat-value.accent  { color: var(--accent); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.muted   { color: var(--text-dim); }

/* ============================================================
   FILTERS
============================================================ */
.filters-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(128,14,25,0.04);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-group { display: flex; flex-direction: column; gap: 5px; }

.filter-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-input,
.filter-select,
.modal-input,
.modal-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    padding: 8px 11px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus,
.modal-input:focus,
.modal-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #fff;
}

.filter-input::placeholder,
.modal-input::placeholder { color: var(--text-muted); }

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   TABLE
============================================================ */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(128,14,25,0.04);
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-panel);
}

.table-info { font-size: 11px; color: var(--text-muted); }
.table-info strong { color: var(--text); font-weight: 500; }

.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }

thead th {
    background: #fdf5f6;
    padding: 9px 15px;
    text-align: left;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    font-weight: 600;
}

thead th:hover { background: var(--accent-dim); }

tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }

tbody td {
    padding: 10px 15px;
    color: var(--text-dim);
    white-space: nowrap;
}

tbody td.primary { color: var(--text); font-weight: 500; }

/* ============================================================
   BADGES
============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-muted   { background: #f5f0f0;           color: var(--text-muted); }
.badge-info    { background: var(--info-bg);     color: var(--info); }

.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.table-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.25;
    color: var(--accent);
}

.table-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: center;
}

.table-loading.visible { display: flex; }

.loader {
    width: 30px; height: 30px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   VIEWS
============================================================ */
.home-panel, .plugin-panel, .sync-panel { display: none; }
.home-panel.active, .plugin-panel.active, .sync-panel.active { display: block; }

/* ============================================================
   COHORT CARDS
============================================================ */
.cohort-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.cohort-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    animation: fadeUp 0.4s ease both;
    box-shadow: 0 1px 4px rgba(128,14,25,0.05);
}

.cohort-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(128,14,25,0.12);
    transform: translateY(-2px);
}

.cohort-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.cohort-card-name {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.cohort-card-id {
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid #e8b8bc;
    border-radius: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}

.cohort-card-stats { display: flex; gap: 16px; }
.cohort-stat { display: flex; flex-direction: column; gap: 2px; }

.cohort-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.cohort-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cohort-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   SYNC PANEL
============================================================ */
.sync-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sync-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(128,14,25,0.04);
}

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

.sync-card-name { font-size: 13px; font-weight: 500; color: var(--text); }

.sync-card-info {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.sync-progress {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
    display: none;
}

.sync-progress.visible { display: block; }

.sync-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
    border-radius: 2px;
}

.sync-progress-bar.indeterminate {
    width: 40%;
    animation: indeterminate 1.2s ease infinite;
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(128,14,25,0.15);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    width: 100%;
    max-width: 460px;
    animation: fadeUp 0.25s ease both;
    box-shadow: 0 16px 48px rgba(128,14,25,0.15);
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.modal-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   TOAST
============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    box-shadow: 0 6px 20px rgba(128,14,25,0.1);
    animation: slideIn 0.3s ease both;
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }
.toast.info    { border-color: var(--accent); }

.toast i { font-size: 14px; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--error); }
.toast.info    i { color: var(--accent); }
