/* ============================================================
   MicroWiFi WS — Stylesheet
   ============================================================ */

/* --- Variabili -------------------------------------------- */
:root {
    --teal:           #1A8A9A;
    --teal-dark:      #146B78;
    --teal-light:     #E8F5F7;
    --green:          #8DC63F;
    --green-dark:     #6FA030;
    --sidebar-bg:     #1B2F38;
    --sidebar-hover:  #243D48;
    --sidebar-active: #1A3A46;
    --sidebar-text:   #8AADB8;
    --page-bg:        #F2F5F8;
    --card-bg:        #FFFFFF;
    --text:           #2C3E50;
    --text-muted:     #6C7A89;
    --border:         #DEE2E6;
    --shadow:         0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.10);
    --radius:         6px;
    --header-h:       64px;
    --sidebar-w:      240px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.55;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: #070f17;
}

/* Sfondo animato */
.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 65%, rgba(26, 138, 154, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 15%, rgba(141, 198, 63, 0.13) 0%, transparent 45%),
        radial-gradient(ellipse at 55% 85%, rgba(26, 138, 154, 0.12) 0%, transparent 40%),
        linear-gradient(140deg, #070f17 0%, #0c2030 40%, #0e3040 70%, #070f17 100%);
    animation: bgPulse 14s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0%   { opacity: 1; }
    100% { opacity: 0.80; }
}

/* Streaks animati (luci fibra) */
.login-streaks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.streak {
    position: absolute;
    height: 1px;
    left: -700px;
    border-radius: 1px;
    opacity: 0;
    animation: streakMove linear infinite;
}

.streak:nth-child(1) { top: 8%;  width: 520px; background: linear-gradient(90deg, transparent, rgba(26,138,154,0.85), rgba(141,198,63,0.45), transparent); animation-duration: 6.5s;  animation-delay: 0s;   }
.streak:nth-child(2) { top: 19%; width: 360px; background: linear-gradient(90deg, transparent, rgba(141,198,63,0.65), transparent);                            animation-duration: 8.2s;  animation-delay: 1.8s; }
.streak:nth-child(3) { top: 31%; width: 620px; background: linear-gradient(90deg, transparent, rgba(26,138,154,0.55), transparent);                            animation-duration: 10.5s; animation-delay: 3.2s; }
.streak:nth-child(4) { top: 44%; width: 440px; background: linear-gradient(90deg, transparent, rgba(141,198,63,0.70), rgba(26,138,154,0.35), transparent);     animation-duration: 7.8s;  animation-delay: 0.6s; }
.streak:nth-child(5) { top: 56%; width: 290px; background: linear-gradient(90deg, transparent, rgba(26,138,154,0.65), transparent);                            animation-duration: 9.3s;  animation-delay: 4.5s; }
.streak:nth-child(6) { top: 67%; width: 570px; background: linear-gradient(90deg, transparent, rgba(141,198,63,0.50), transparent);                            animation-duration: 11.0s; animation-delay: 2.1s; }
.streak:nth-child(7) { top: 78%; width: 390px; background: linear-gradient(90deg, transparent, rgba(26,138,154,0.45), rgba(141,198,63,0.55), transparent);     animation-duration: 13.5s; animation-delay: 5.8s; }
.streak:nth-child(8) { top: 89%; width: 475px; background: linear-gradient(90deg, transparent, rgba(26,138,154,0.72), transparent);                            animation-duration: 8.7s;  animation-delay: 1.2s; }

@keyframes streakMove {
    0%   { left: -700px; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: 110vw;  opacity: 0; }
}

/* Layout login */
.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    align-items: center;
}

.login-brand {
    flex: 1;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand-logo {
    max-width: 210px;
    margin-bottom: 48px;
    filter: brightness(0) invert(1);
}

.login-brand h1 {
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.login-brand h1 strong {
    display: block;
    font-weight: 700;
    color: #ffffff;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.6;
}

/* Card login */
.login-card-wrap {
    width: 440px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(4px);
}

.login-card { width: 100%; }

.login-card-logo {
    max-width: 160px;
    margin: 0 auto 32px;
}

.login-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 6px;
    text-align: center;
}

.login-card-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 36px;
}

/* Campi login (stile underline) */
.field-line {
    margin-bottom: 28px;
}

.field-line label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}

.field-line .input-wrap { position: relative; }

.field-line input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--border);
    padding: 8px 32px 8px 0;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.field-line input:focus { border-bottom-color: var(--teal); }

.toggle-pw {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.toggle-pw:hover { color: var(--teal); }

.toggle-pw svg { width: 18px; height: 18px; }

.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 36px;
    background: var(--teal);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover { background: var(--teal-dark); }

.login-error {
    background: #fde8e8;
    color: #b52b2b;
    border-left: 3px solid #c0392b;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 20px;
}


/* ============================================================
   LAYOUT INTERNO
   ============================================================ */

.app-wrap {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar ---------------------------------------------- */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-logo img {
    max-height: 34px;
    filter: brightness(0) invert(1);
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section-label {
    padding: 16px 18px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.25);
}

.nav-item { margin-bottom: 1px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 18px;
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
    user-select: none;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
    text-decoration: none;
}

.nav-link.active {
    background: var(--sidebar-active);
    color: #ffffff;
    border-left-color: var(--teal);
}

.nav-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.75;
}

.nav-link:hover svg,
.nav-link.active svg { opacity: 1; }

.nav-arrow {
    margin-left: auto;
    width: 13px;
    height: 13px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-item.open > .nav-link .nav-arrow { transform: rotate(180deg); }

.nav-sub {
    display: none;
    background: rgba(0, 0, 0, 0.18);
}

.nav-item.open > .nav-sub { display: block; }

.nav-sub .nav-link {
    padding-left: 46px;
    font-size: 0.84rem;
    font-weight: 400;
    border-left: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-sub .nav-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
}

.nav-sub .nav-link.active::before,
.nav-sub .nav-link:hover::before { opacity: 1; }

/* --- Header ----------------------------------------------- */
.header {
    height: var(--header-h);
    background: var(--card-bg);
    box-shadow: 0 1px 0 var(--border);
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.header-title {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.header-title strong {
    color: var(--teal);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.header-version {
    font-size: 0.75rem;
    color: var(--border);
    margin-left: 6px;
}

.header-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.header-user-info { line-height: 1.3; }

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.header-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.header-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.header-user.open .header-chevron { transform: rotate(180deg); }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 300;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.12s;
}

.user-dropdown a svg { width: 15px; height: 15px; flex-shrink: 0; }

.user-dropdown a:hover { background: var(--page-bg); }

.user-dropdown a.danger { color: #c0392b; }

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

/* --- Contenuto principale ---------------------------------- */
.main-content {
    margin-left: var(--sidebar-w);
    padding-top: var(--header-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-content {
    padding: 28px;
    flex: 1;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.83rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { color: var(--teal-dark); }

.breadcrumb-sep {
    color: var(--border);
    font-size: 0.9rem;
}

.breadcrumb-current { color: var(--text); font-weight: 500; }

/* --- Page header ------------------------------------------ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--teal);
}

/* --- Stat cards ------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 22px; height: 22px; color: var(--teal); }
.stat-icon.green { background: #eef6e4; }
.stat-icon.green svg { color: var(--green-dark); }

.stat-info { min-width: 0; }

.stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Cards ------------------------------------------------- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.card-body { padding: 22px; }

/* --- Tabelle ----------------------------------------------- */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--page-bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

.table-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Badges ----------------------------------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Ordini */
.badge-nuovo        { background: #dff4f8; color: #0e7a8e; }
.badge-lavorazione  { background: var(--teal-light); color: var(--teal-dark); }
.badge-attesa       { background: #fff4d6; color: #8a6400; }
.badge-pianificato  { background: #e9ecef; color: #495057; }
.badge-attivato     { background: #e2f4e8; color: #1a6e35; }
.badge-sospeso      { background: #fde8e8; color: #922b2b; }
.badge-annullato    { background: #e0e3e5; color: #3d4349; }

/* Ruoli */
.badge-superadmin { background: #f0e6ff; color: #6a1f99; }
.badge-admin      { background: var(--teal-light); color: var(--teal-dark); }
.badge-client     { background: #e8f5e9; color: #256b36; }

/* Tecnologia */
.badge-tech {
    background: #e8f5e9;
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* --- Pulsanti ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-sm { padding: 6px 13px; font-size: 0.82rem; }
.btn-sm svg { width: 13px; height: 13px; }

.btn-primary  { background: var(--teal);  color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }

.btn-success  { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-dark); color: #fff; }

.btn-danger   { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #b52b39; color: #fff; }

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

.btn-ghost    { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-light); }

/* --- Form -------------------------------------------------- */
.form-section { margin-bottom: 32px; }

.form-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.form-group.full { grid-column: 1 / -1; flex-basis: 100%; }

.form-group label {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group label .req { color: #c0392b; margin-left: 2px; }

.form-control {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26, 138, 154, 0.12);
}

.form-control:disabled,
.form-control[readonly] { background: var(--page-bg); cursor: not-allowed; color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Radio / checkbox group */
.radio-group, .check-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.radio-group label, .check-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.radio-group input[type=radio],
.check-group input[type=checkbox] { accent-color: var(--teal); cursor: pointer; }

/* --- Alert ------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.alert-success { background: #e8f5ee; border-color: #28a745; color: #1a5e2e; }
.alert-danger  { background: #fde8e8; border-color: #dc3545; color: #922b2b; }
.alert-warning { background: #fff4d6; border-color: #f0a500; color: #7a5500; }
.alert-info    { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }

/* --- Note/commenti ---------------------------------------- */
.notes-list { display: flex; flex-direction: column; gap: 12px; }

.note-item {
    background: var(--page-bg);
    border-radius: var(--radius);
    padding: 12px 16px;
    border-left: 3px solid var(--teal);
}

.note-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.note-meta strong { color: var(--text); font-weight: 600; }
.note-body { font-size: 0.9rem; color: var(--text); }

/* --- Paginazione ------------------------------------------ */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 0 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
}

.pagination a:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
.pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.pagination .disabled { color: var(--border); pointer-events: none; }

/* --- Utilities --------------------------------------------- */
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.gap-16      { gap: 16px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mb-8        { margin-bottom: 8px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-small  { font-size: 0.82rem; }
.fw-600      { font-weight: 600; }
.w-100       { width: 100%; }
.text-teal   { color: var(--teal); }
.text-green  { color: var(--green-dark); }
.text-danger { color: #c0392b; }

/* --- Footer ----------------------------------------------- */
.app-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.app-footer a { color: var(--teal); text-decoration: none; }
.app-footer a:hover { color: var(--teal-dark); text-decoration: underline; }
