/* public/css/variables.css */
/* Variáveis globais de cores e espaçamentos */

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

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

/* ==== LINKS ===== */
a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== UTILITÁRIOS ===== */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== TEMA ESCURO (padrão) ===== */
:root {
    --bg-primary: #0f1621;
    /* fundo geral */
    --bg-secondary: #1a2232;
    /* sidebar, headers */
    --bg-panel: #151e2d;
    /* coluna de lista */
    --bg-hover: #1f2e42;
    --bg-active: #1e4976;
    /* item selecionado */
    --bg-input: #1f2e42;

    --text-primary: #e2e8f0;
    --text-secondary: #7a8fa6;
    --text-placeholder: #4a6080;

    --accent: #3b82f6;
    /* azul moderno */
    --accent-hover: #2563eb;
    --accent-soft: #1e3a5f;
    /* fundo suave do accent */

    --msg-sent: #1e4976;
    --msg-received: #1a2232;

    --border: #1e2d42;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --shadow: rgba(0, 0, 0, 0.4);

    --radius: 10px;
    --radius-sm: 6px;

    --nav-width: 64px;
    /* coluna de ícones */
    --list-width: 320px;
    /* coluna de conversas */
}

/* ===== TEMA CLARO ===== */
/* Ativado quando o body tem a classe "light" */
body.light {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-panel: #f8fafc;
    --bg-hover: #e8f0fe;
    --bg-active: #dbeafe;
    --bg-input: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-placeholder: #94a3b8;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #dbeafe;

    --msg-sent: #dbeafe;
    --msg-received: #ffffff;

    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
}

;