/**
 * Refugios de Andalucía - Styles Demo
 * Componentes UI: cards, botones, badges, alertas, tablas.
 */

/* ----- Botones generales ----- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.4rem; border-radius: var(--ra-radius,8px);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    border: 2px solid transparent; text-decoration: none;
    transition: all .25s; white-space: nowrap;
}
.btn-primary   { background: #2d5016; color: #fff; border-color: #2d5016; }
.btn-primary:hover { background: #4a7c2c; border-color: #4a7c2c; color: #fff; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: #2d5016; border-color: #2d5016; }
.btn-outline:hover { background: #2d5016; color: #fff; }
.btn-danger    { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-sm        { padding: .4rem .9rem; font-size: .85rem; }
.btn-block     { width: 100%; justify-content: center; }

/* ----- Alertas ----- */
.alert { padding: 1rem 1.25rem; border-radius: 8px; border-left: 4px solid; margin-bottom: 1rem; }
.alert-success { background: #d4edda; border-color: #28a745; color: #155724; }
.alert-warning { background: #fff3cd; border-color: #ffc107; color: #856404; }
.alert-danger  { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.alert-info    { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }

/* ----- Badges ----- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.badge-verde { background: #e8f5e0; color: #2d5016; }
.badge-azul  { background: #dbeafe; color: #1e3a8a; }
.badge-rojo  { background: #fee2e2; color: #dc3545; }
.badge-gris  { background: #f1f1f1; color: #555; }

/* ----- Cards panel ----- */
.panel-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 1.5rem; }
.panel-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid #e8f5e0; }
.panel-card-title { font-size: 1.1rem; font-weight: 700; color: #2d5016; margin: 0; }

/* ----- Tablas responsive ----- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; }
.table th { background: #f8f9fa; font-weight: 600; color: #2d5016; }
.table tbody tr:hover { background: #f8fff5; }

/* ----- Spinner ----- */
@keyframes ra-spin { to { transform: rotate(360deg); } }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: ra-spin .7s linear infinite; display: inline-block; vertical-align: middle; }
.spinner-verde { border-color: rgba(45,80,22,.2); border-top-color: #2d5016; }
