:root {
    --azul-principal: #0B5FA5;
    --azul-claro: #4FA3E3;
    --cinza-fundo: #F4F6F8;
    --cinza-texto: #2F3A45;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    background: var(--cinza-fundo);
    color: var(--cinza-texto);
}

/* Barra decorativa superior */
.top-bar {
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--azul-principal),
        var(--azul-claro)
    );
}

/* Header */
.header {
    background: #fff;
    text-align: center;
    padding: 35px 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    animation: fadeDown 0.6s ease forwards;
}

.header img {
    max-width: 220px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--azul-principal);
}

.header p {
    font-size: 14px;
    color: #666;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--cinza-texto);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border-top: 4px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(11, 95, 165, 0.25);
    border-top: 4px solid var(--azul-principal);
}

.card img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 15px;
}

.cidade {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

/* Status */
.status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Status Ativo */
.status.ativo {
    background: #e6f2ff;
    color: var(--azul-principal);
}

/* Status Manutenção */
.status.manutencao {
    background: #fff1e6;
    color: #d35400;
}

/* Card Manutenção */
.card.manutencao {
    opacity: 0.6;
    cursor: not-allowed;
}

.card.manutencao:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border-top: 4px solid transparent;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #777;
}

/* Animações */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Sistema Legado */
.card.legado {
    background: #f9fafb;
    border: 2px dashed var(--azul-principal);
    box-shadow: none;
}

.card.legado:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(11, 95, 165, 0.18);
}

/* Status legado */
.status.legado {
    background: #e6f2ff;
    color: var(--azul-principal);
}

/* Ícone do sistema antigo */
.icone-legado {
    font-size: 42px;
    margin: 20px 0 15px;
    color: var(--azul-principal);
}

/* Texto auxiliar */
.card.legado small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}