/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0d47a1, #1565c0, #0d47a1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container */
.container {
    width: 100%;
    max-width: 420px;
}

/* Card */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 2.2rem;
    text-align: center;
}

.card h2 {
    color: #0d47a1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitulo {
    color: #555;
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
}

/* Inputs */
.card input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.card input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* Botões */
.card button,
button,
.btn {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.card button:hover,
button:hover,
.btn:hover {
    background: #0d47a1;
}

/* Links */
.links {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.links a,
.btn-inline {
    color: #1976d2;
    text-decoration: none;
}

.links a:hover,
.btn-inline:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 14px;
    margin: 16px 0;
    border-radius: 8px;
    font-weight: 500;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

/* Botões específicos */
.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-voltar {
    background: #757575;
    padding: 8px 15px;
    font-size: 0.9rem;
    width: auto;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-voltar:hover {
    background: #616161;
}

/* Dashboard Links */
.dashboard-links {
    margin: 2rem 0;
}

.dashboard-links .btn {
    margin: 8px auto;
    max-width: 300px;
    background: #e0e0e0;
    color: #333;
}

.dashboard-links .btn:hover {
    background: #bdbdbd;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #0d47a1;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f5f5f5;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.ativo {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.inativo {
    background: #ffebee;
    color: #c62828;
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.hidden {
    display: none;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}