/* OpenUAI - Estilos del sistema de usuarios */

.auth-container {
    max-width: 520px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-container .lead {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
}

.form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-family: 'Made Tommy', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #000;
}

.form-row input,
.form-row select,
.form-row textarea {
    font-family: 'The Sans', sans-serif;
    font-size: 1em;
    padding: 12px 14px;
    border: 1.5px solid #000000;
    border-radius: 3px;
    background: #fff;
    color: #000;
    outline: none;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #666;
}

.form-row .hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.auth-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-actions .btn,
.auth-actions .btn-outline-dark {
    margin-top: 0;
    width: 100%;
}

.auth-footer-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

.auth-footer-link a {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 18px;
    font-size: 0.9em;
    border: 1.5px solid;
}

.alert-error {
    background: #fff2f2;
    border-color: #b00020;
    color: #7a0015;
}

.alert-success {
    background: #f0fff4;
    border-color: #0a7d2f;
    color: #065b22;
}

.alert-info {
    background: #f4f7ff;
    border-color: #1f3a93;
    color: #1f3a93;
}

/* Dashboard */
.dashboard-header {
    background: #000;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header h2 {
    color: #fff;
    margin: 0;
}

.dashboard-header .user-chip {
    font-size: 0.85em;
    color: #ccc;
}

.dashboard-header .user-chip strong {
    color: #fff;
    display: block;
    font-family: 'Made Tommy', sans-serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dash-card {
    border: 2px solid #000;
    padding: 24px;
    border-radius: 4px;
    background: #fff;
    transition: all 0.25s ease;
}

.dash-card:hover {
    background: #000;
    color: #fff;
}

.dash-card:hover h3,
.dash-card:hover p {
    color: #fff;
}

.dash-card h3 {
    font-family: 'Made Tommy', sans-serif;
    margin-bottom: 10px;
}

.role-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-family: 'Made Tommy', sans-serif;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

/* Tabla admin */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #000;
    color: #fff;
    font-family: 'Made Tommy', sans-serif;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 1px;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table .btn-small {
    padding: 6px 12px;
    font-size: 0.75em;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    cursor: pointer;
    font-family: 'Made Tommy', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-right: 4px;
}

.data-table .btn-small.danger {
    background: #b00020;
    border-color: #b00020;
}

.data-table .btn-small.outline {
    background: #fff;
    color: #000;
}

.inactive-row {
    opacity: 0.5;
}

/* Nav session */
.nav-session {
    float: right;
    margin-right: 20px;
    font-size: 0.85em;
}

.nav-session a {
    color: #000;
    font-weight: bold;
}
