/* --- CONFIGURAÇÕES DE NÚCLEO (NOCTIS_OS) --- */
:root {
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --bg-sidebar: #010409;
    --border-color: #30363d;
    --accent-blue: #58a6ff;
    --accent-green: #238636;
    --accent-red: #f85149;
    --text-main: #c9d1d9;
    --text-dim: #8b949e;
    --header-height: 60px;
    --sidebar-width: 250px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* --- ESTILO DAS PÁGINAS DE LOGIN / CADASTRO --- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--bg-panel);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    align-self: center;
    max-width: 100%;
    border: 1px solid var(--border-color);
}

/* --- LAYOUT DO SISTEMA --- */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-header {
    height: var(--header-height);
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.btn-logout {
    background-color: var(--accent-red) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.4);
}

.header-user {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.status-dot {
    height: 8px; width: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--accent-green);
}

.user-highlight {
    color: var(--accent-blue);
    font-weight: bold;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.main-panel {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* --- FORMULÁRIOS --- */
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9em; color: var(--text-dim); }
input, textarea {
    width: 100%; padding: 12px; margin-bottom: 20px;
    border-radius: 6px; border: 1px solid var(--border-color);
    background-color: var(--bg-dark); color: #fff;
    font-family: 'Consolas', monospace;
}
button {
    width: 100%; padding: 14px; background-color: var(--accent-green);
    color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: bold;
}

/* --- NAVEGAÇÃO --- */
.nav-item {
    padding: 12px 15px; color: var(--text-main); text-decoration: none;
    border-radius: 6px; display: flex; align-items: center; gap: 12px; margin-bottom: 5px;
}
.nav-item:hover { background: var(--bg-panel); color: var(--accent-blue); }

/* --- NOVO: ESTILO DAS MENSAGENS NO DASHBOARD --- */
.messages-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-panel);
    overflow: hidden;
}

.message-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.message-row:last-child { border-bottom: none; }

/* Mensagens Enviadas: Verde + Glow */
.message-row.sent { border-left: 4px solid var(--accent-green); }
.message-row.sent:hover {
    background: #1c2128;
    box-shadow: 0 0 15px rgba(35, 134, 54, 0.4);
    transform: translateX(5px);
}
.arrow.sent { color: var(--accent-green); font-weight: bold; font-size: 1.2em; }

/* Mensagens Recebidas: Vermelho + Glow */
.message-row.received { border-left: 4px solid var(--accent-red); }
.message-row.received:hover {
    background: #1c2128;
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.4);
    transform: translateX(5px);
}
.arrow.received { color: var(--accent-red); font-weight: bold; font-size: 1.2em; }

/* Mensagens Não Lidas: Negrito */
.message-row.unread .contact-name {
    font-weight: 850;
    color: #fff;
    text-shadow: 0 0 5px var(--accent-blue);
}

.status-indicator { width: 40px; }
.message-info { flex: 1; }
.message-date { font-size: 0.8em; color: var(--text-dim); margin-top: 4px; }
.empty-log { padding: 40px; text-align: center; color: var(--text-dim); }













/* --- ESTILO PÁGINA INICIAL (INDEX) --- */
/* --- ESTILOS EXCLUSIVOS DA PÁGINA INICIAL --- */
.landing-page {
    background-color: var(--bg-dark); /* */
    overflow: hidden;
}

.animation-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Garante que não bloqueie cliques em botões */
}

.index-header {
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6em;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--text-main); /* */
    text-shadow: 0 0 10px var(--accent-blue);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-index {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8em;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid var(--border-color); /* */
    border-radius: 4px;
    transition: 0.3s;
}

.btn-index:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.btn-request {
    background: var(--accent-green); /* */
    border-color: var(--accent-green);
    color: #fff;
}

.btn-request:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(35, 134, 54, 0.4);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    letter-spacing: 12px;
    margin-bottom: 15px;
    color: #fff;
}

.hero-content p {
    color: var(--text-dim); /* */
    max-width: 500px;
    margin: 0 auto 30px auto;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7em;
    color: var(--accent-green);
    letter-spacing: 2px;
    padding: 5px 15px;
    border: 1px solid rgba(35, 134, 54, 0.3);
    border-radius: 20px;
}

.index-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #30363d;
}














/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .sidebar { width: 45px !important; min-width: 45px !important; padding: 20px 5px !important; }
    .nav-text, .sidebar-footer, .nav-divider { display: none !important; }
    .nav-item { justify-content: center; padding: 15px 0; }
    .icon { margin: 0 !important; font-size: 1.4em; }
    .main-panel { padding: 15px !important; }
    .container { padding: 20px 10px !important; }
}