/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Contenedor de login/registro */
.auth-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 40px 50px;
    max-width: 480px;
    width: 100%;
    transition: transform 0.3s ease;
}

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

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #1a3a6b;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: #4a9eff;
}

.logo p {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a3a6b;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e4e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2d6da8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 109, 168, 0.15);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: #1a3a6b;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2d6da8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 107, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #1a3a6b;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-success {
    background: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #1a3a6b;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

.auth-links a {
    color: #2d6da8;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard cards */
.dashboard-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 30px 40px;
    max-width: 1100px;
    width: 100%;
    margin: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.dashboard-header h2 {
    color: #1a3a6b;
    font-size: 24px;
}

.dashboard-header .user-info {
    color: #6c757d;
    font-size: 14px;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    background: #f8f9fa;
    color: #1a3a6b;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

table tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-open { background: #d4edda; color: #155724; }
.badge-in_progress { background: #fff3cd; color: #856404; }
.badge-closed { background: #f8d7da; color: #721c24; }
.badge-peticion { background: #cce5ff; color: #004085; }
.badge-queja { background: #f8d7da; color: #721c24; }
.badge-reclamo { background: #ffe5d0; color: #802c00; }
.badge-sugerencia { background: #d1ecf1; color: #0c5460; }

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        padding: 25px 20px;
    }
    .dashboard-container {
        padding: 20px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
