/* public/assets/css/components.css */
/* Componentes Reutilizables: Botones, Badges, Cards, Forms, Tablas */

/* ===== SISTEMA DE BOTONES CON EFECTO GRADIENTE ===== */

/* Botones minimalistas y sencillos */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-edit,
.btn-delete,
.btn-view,
.btn-filter,
.btn-clear {
    /* Layout y espaciado */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    min-width: 70px;

    /* Tipografía */
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.4;

    /* Estilo base */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Colores de cada variante - Solo negro, amarillo y rojo para eliminar */

/* Botones amarillos (acciones principales positivas) */
.btn,
.btn-primary,
.btn-success,
.btn-warning {
    background: #F5C02E;
    color: #000;
}

/* Botones negros (acciones secundarias) */
.btn-secondary,
.btn-info,
.btn-view,
.btn-edit,
.btn-filter,
.btn-clear {
    background: #000;
    color: #fff;
}

/* Botón de eliminar/peligro - ROJO */
.btn-danger,
.btn-delete {
    background: #dc2626;
    color: #fff;
}

/* Hover simple - solo elevación sutil, sin cambio de color */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-edit:hover,
.btn-delete:hover,
.btn-view:hover,
.btn-filter:hover,
.btn-clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Estados activo */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-edit:active,
.btn-delete:active,
.btn-view:active,
.btn-filter:active,
.btn-clear:active {
    transform: translateY(0);
}

/* Tamaños de botones */
.btn-sm {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 50px;
}

.btn-lg {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 100px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Estados deshabilitados */
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled,
.btn-danger:disabled,
.btn-warning:disabled,
.btn-info:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled::before,
.btn-primary:disabled::before,
.btn-secondary:disabled::before,
.btn-success:disabled::before,
.btn-danger:disabled::before,
.btn-warning:disabled::before,
.btn-info:disabled::before {
    opacity: 0;
}

.btn:disabled:hover,
.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-success:disabled:hover,
.btn-danger:disabled:hover,
.btn-warning:disabled:hover,
.btn-info:disabled:hover {
    transform: none;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}

/* Grupo de botones */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-group .btn {
    margin: 0;
}

/* ===== BADGES Y ETIQUETAS ===== */

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

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background: #F5C02E;
    color: #000;
}

/* ===== CARDS ===== */

.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 2px solid #F5C02E;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #f8f9fa;
    padding: 12px 20px;
    border-top: 1px solid #ecf0f1;
}

/* ===== TABLAS ===== */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ecf0f1;
}

.table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #2c3e50;
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== FORMS ===== */

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F5C02E;
    box-shadow: 0 0 0 3px rgba(245, 192, 46, 0.1);
}

/* ===== ALERTAS ===== */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .table {
        font-size: 13px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px 8px;
    }

}
/* Etiquetas de marca compartidas por login y navegación. */
.nav-eyebrow, .eyebrow{
    display: block;
    font: 600 11px/1.5 Arial, sans-serif;
    letter-spacing: .18em;
    color: var(--brand-accent);
}
