/* ===================================================
   CONFIGURAÇÕES GERAIS E RESET DE ALTO CONTRASTE
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

body {
    background-color: #0b0f1a; /* Fundo ultra escuro para destacar elementos */
    color: #ffffff !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================================
   SITE PÚBLICO (VITRINE DE ELITE)
   =================================================== */
.main-header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav ul li a {
    color: #f8fafc !important;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Container de Introdução */
.intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

/* Grid e Cards Transformados */
.grid-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card-site {
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-site:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #4facfe;
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.2);
}

.card-imagem {
    height: 220px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
}

.card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.card-info {
    padding: 30px;
}

.card-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 15px;
}

.card-info p {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 50px;
}

/* Badges Flutuantes */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.status-badge.ativo { background: #10b981; color: #fff; }
.status-badge.beta { background: #f59e0b; color: #fff; }
.status-badge.manutenção { background: #ef4444; color: #fff; }

/* Tecnologia em destaque */
.tecnologias-tag {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tecnologias-tag small {
    background: rgba(79, 172, 254, 0.1);
    color: #7dd3fc !important;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    font-weight: 700;
}

.btn-visitar {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff !important;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 25px;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* ===================================================
   PAINEL ADMINISTRATIVO (CONFIÁVEL E VISÍVEL)
   =================================================== */
.admin-sidebar {
    background-color: #0f172a;
    border-right: 2px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user strong { 
    color: #10b981 !important; 
    font-size: 1.3rem;
}

.sidebar-menu ul li a {
    color: #cbd5e0 !important;
    font-weight: 600;
}

.sidebar-menu ul li a.active {
    background: #1e293b;
    color: #4facfe !important;
    border-left: 4px solid #4facfe;
}

/* FORMULÁRIO: FUNDO BRANCO NO INPUT PARA LEITURA TOTAL */
.form-admin {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
}

.form-group label {
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 12px;
    display: block;
}

/* SOLUÇÃO DEFINITIVA PARA LETRAS SUMINDO NO ADMIN */
.form-group input, 
.form-group textarea, 
.form-group select {
    background: #ffffff !important; /* Fundo branco para não confundir */
    color: #1a202c !important; /* Letra escura no fundo branco */
    border: 3px solid #cbd5e0;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.form-group input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

/* TABELAS ADMIN */
.table-container {
    background: #1e293b;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabela-sites th {
    color: #4facfe !important;
    font-weight: 800;
    padding: 20px;
    border-bottom: 2px solid #334155;
}

.tabela-sites td {
    padding: 18px;
    color: #f1f5f9 !important;
    font-weight: 600;
}

/* ALERTAS */
.alert {
    background: #ffffff !important;
    color: #000 !important;
    border-radius: 15px;
    font-weight: 800;
    border-left: 10px solid #10b981;
}

/* RODAPÉ */
.main-footer {
    background: #0b0f1a;
    padding: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b !important;
    font-weight: 700;
}