/* =============================================
   PURIFIKAR - Design System
   Paleta oficial da marca
   ============================================= */

:root {
    /* Paleta Purifikar */
    --preto-profundo: #101820;
    --chumbo-metalico: #4B4F54;
    --prata-luxo: #D0D0CE;
    --dourado-solar: #C9A84C;
    --azul-profundo: #203059;
    --azul-royal: #0d4796;

    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--preto-profundo);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

/* =============================================
   PÁGINA PÚBLICA (index.php / login do dash)
   ============================================= */
.public-page {
    background: linear-gradient(160deg, var(--preto-profundo) 0%, var(--azul-profundo) 60%, var(--azul-royal) 100%);
}

.glass-container {
    position: relative;
    z-index: 1;
    background: rgba(32, 48, 89, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

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

header {
    margin-bottom: 2rem;
}

.logo {
    width: 180px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dourado-solar);
    margin-bottom: 0.5rem;
}

p {
    color: var(--prata-luxo);
    font-size: 0.95rem;
    line-height: 1.4;
}

.validation-form {
    margin-top: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"], input[type="password"] {
    padding: 1rem;
    border: 1px solid rgba(208, 208, 206, 0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: rgba(16, 24, 32, 0.6);
    color: #FFFFFF;
}

input[type="text"]::placeholder, input[type="password"]::placeholder {
    color: var(--prata-luxo);
    opacity: 0.6;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--dourado-solar);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--dourado-solar), #D4B85C);
    color: var(--preto-profundo);
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.45);
}

footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--chumbo-metalico);
}

/* =============================================
   DASHBOARD ADMINISTRATIVO (dash.php)
   ============================================= */
.admin-body {
    background: var(--preto-profundo);
    display: block;
    color: #FFFFFF;
}

.admin-header {
    background: var(--azul-profundo);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--dourado-solar);
}

.admin-header .btn-small {
    color: var(--dourado-solar);
    border-color: var(--dourado-solar);
}

.admin-header .btn-small:hover {
    background: rgba(201, 168, 76, 0.15);
}

.admin-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--azul-profundo);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 3px solid var(--dourado-solar);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--prata-luxo);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.stat-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dourado-solar);
}

.content-section {
    background: var(--azul-profundo);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--dourado-solar);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    color: var(--prata-luxo);
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(208, 208, 206, 0.1);
    color: #FFFFFF;
}

th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--prata-luxo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background: rgba(13, 71, 150, 0.15);
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--chumbo-metalico);
    color: var(--prata-luxo);
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}

.btn-small:hover {
    background: rgba(208, 208, 206, 0.1);
    border-color: var(--dourado-solar);
    color: var(--dourado-solar);
}