/* ========== CORES PRINCIPAIS ========== */
:root {
    --azul-metalico: #1a3a5c;
    --azul-metalico-claro: #2a5a8c;
    --cinza-celeste: #b0c4de;
    --cinza-celeste-claro: #d4e0f0;
    --cinza-escuro: #2c3e50;
    --branco: #f0f4f8;
    --sombra: 0 4px 20px rgba(0,0,0,0.3);
}

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

body {
    background: var(--branco);
}

/* ========== LOGIN ========== */
.login-page {
    background: linear-gradient(135deg, var(--azul-metalico), var(--cinza-escuro));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: var(--branco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--sombra);
    text-align: center;
    width: 350px;
    border: 2px solid var(--cinza-celeste);
}

.login-box h1 {
    color: var(--azul-metalico);
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid var(--cinza-celeste);
    border-radius: 10px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--azul-metalico);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: var(--azul-metalico-claro);
    transform: scale(1.02);
}

.login-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.erro {
    background: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ========== LAYOUT ADMIN ========== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--azul-metalico), var(--cinza-escuro));
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-sidebar {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--cinza-celeste);
    margin-bottom: 20px;
}

.logo-sidebar img {
    max-width: 150px;
    border-radius: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 25px;
    color: var(--cinza-celeste);
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.ativo {
    background: rgba(176, 196, 222, 0.1);
    border-left: 4px solid var(--cinza-celeste);
    color: white;
}

.sidebar ul li a.sair {
    border-top: 2px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    color: #ff6b6b;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
    background: var(--branco);
}

.main-content header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--cinza-celeste);
    margin-bottom: 30px;
}

.main-content header h1 {
    color: var(--azul-metalico);
    font-size: 28px;
}

.admin-info {
    background: var(--azul-metalico);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid var(--azul-metalico);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;
}

.card-info h3 {
    font-size: 32px;
    color: var(--azul-metalico);
}

.card-info p {
    color: #666;
}

/* TABELAS */
table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

thead {
    background: var(--azul-metalico);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: var(--cinza-celeste-claro);
}

tbody tr:hover {
    background: var(--cinza-celeste);
}

.btn-excluir {
    color: #ff4444;
    text-decoration: none;
    font-size: 20px;
}

/* FORMULÁRIOS */
.form-upload {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    margin-bottom: 30px;
}

.form-upload h2 {
    color: var(--azul-metalico);
    margin-bottom: 20px;
}

.form-upload input,
.form-upload select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid var(--cinza-celeste);
    border-radius: 10px;
    font-size: 16px;
}

.form-upload button {
    width: 100%;
    padding: 12px;
    background: var(--azul-metalico);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.form-upload button:hover {
    background: var(--azul-metalico-claro);
}

.mensagem {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #4CAF50;
    color: white;
    font-weight: bold;
}

/* CLIENTES */
.lista-clientes {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    margin-top: 20px;
}

/* PERFIL */
.perfil-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    max-width: 500px;
}

.perfil-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid var(--cinza-celeste);
    border-radius: 10px;
}

.perfil-box button {
    width: 100%;
    padding: 12px;
    background: var(--azul-metalico);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    .sidebar ul li a {
        font-size: 12px;
        padding: 12px 10px;
        text-align: center;
    }
    .sidebar ul li a span {
        display: none;
    }
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 15px;
    }
    .logo-sidebar img {
        max-width: 60px;
    }
}