/* Estilos compartidos del panel admin (OutoRecords) */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.swal2-input {
    background: #1f2937 !important;
    border: 1px solid #3f3f46 !important;
    color: #e4e4e7 !important;
    border-radius: 0.5rem !important;
}

.swal2-input::placeholder {
    color: #71717a !important;
}

.swal2-popup {
    background: #18181b !important;
    color: #e4e4e7 !important;
}

.swal2-title {
    color: #e4e4e7 !important;
}

.swal2-html-container {
    color: #a1a1aa !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.table-container {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}
.table-container::-webkit-scrollbar {
    height: 6px;
}
.table-container::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-pendiente {
    background-color: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}
.status-confirmado {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-rechazado {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-revision_pago {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.status-cancelado {
    background-color: rgba(161, 161, 170, 0.1);
    color: #a1a1aa;
    border: 1px solid rgba(161, 161, 170, 0.25);
}
.status-no_show {
    background-color: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

@keyframes reservaDestacadaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.5); border-color: rgba(45,212,191,0.8); }
    50% { box-shadow: 0 0 28px 6px rgba(45,212,191,0.35), 0 0 0 2px rgba(192,132,252,0.4); }
}
.reserva-destacada {
    animation: reservaDestacadaPulse 1s ease-in-out 4;
    border-color: rgba(45,212,191,0.9) !important;
    position: relative;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
    .reserva-destacada { animation: none; outline: 2px solid rgba(45,212,191,0.8); }
}

.toggle-checkbox:checked {
    right: 0;
    border-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #10b981;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.mobile-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 1rem;
    padding: 1rem;
}

.tabs-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar {
    display: none;
}

button, select, input { min-height: 44px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.75rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}
.icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}
@media (min-width: 768px) {
    .icon-btn-expand-md {
        width: auto;
        min-width: 44px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.icon-btn-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    line-height: 1;
}

.dashboard-stat {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.dashboard-stat-btn {
    display: block;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.dashboard-stat-btn:hover {
    border-color: rgba(45, 212, 191, 0.45);
    background: #1f1f23;
}

.dashboard-stat-btn:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.6);
    outline-offset: 2px;
}

.dashboard-stat-btn:active {
    transform: scale(0.98);
}

.dashboard-drill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 18rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.dashboard-drill-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-drill-count {
    margin: 0;
    font-size: 0.75rem;
    color: #71717a;
    text-align: left;
}

.dashboard-drill-empty {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #71717a;
    text-align: center;
}

.dashboard-drill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid #27272a;
    background: #18181b;
}

.dashboard-drill-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-drill-card--click {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.dashboard-drill-card--click:hover {
    border-color: rgba(45, 212, 191, 0.55);
    background: #1f1f23;
    transform: translateY(-1px);
}

.dashboard-drill-card--click:active {
    transform: scale(0.99);
}

.dashboard-drill-card .status-badge,
.dashboard-drill-card .drill-badge-meta {
    flex-shrink: 0;
}

.dashboard-drill-panel--gestion .dashboard-drill-card {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(250, 204, 21, 0.06);
}

.dashboard-drill-panel--comprobantes .dashboard-drill-card {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.06);
}

.dashboard-drill-panel--hoy .dashboard-drill-card {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.06);
}

.dashboard-drill-panel--proximas_7 .dashboard-drill-card {
    border-color: rgba(45, 212, 191, 0.25);
    background: rgba(45, 212, 191, 0.06);
}

.dashboard-drill-panel--lista_espera .dashboard-drill-card {
    border-color: rgba(192, 132, 252, 0.25);
    background: rgba(192, 132, 252, 0.06);
}

.dashboard-drill-panel--revision_pago .dashboard-drill-card {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.06);
}

.dashboard-drill-panel--clientes_unicos .dashboard-drill-card {
    border-color: rgba(45, 212, 191, 0.2);
    background: rgba(24, 24, 27, 0.95);
}

.status-activa {
    background-color: rgba(192, 132, 252, 0.12);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.25);
}

.status-notificada {
    background-color: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.drill-badge-meta {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.25);
    flex-shrink: 0;
}

.drill-swal-popup {
    background: #18181b !important;
    color: #fafafa !important;
    border: 1px solid #27272a !important;
    border-radius: 1rem !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45) !important;
}

.drill-swal-title {
    color: #ffffff !important;
    font-size: 1.125rem !important;
}

.drill-swal-confirm {
    background: #0d9488 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.625rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
}

.drill-swal-confirm:hover {
    background: #0f766e !important;
}

.drill-swal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: #a1a1aa;
    font-size: 0.875rem;
}

.drill-swal-spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #3f3f46;
    border-top-color: #2dd4bf;
    border-radius: 50%;
    animation: drillSwalSpin 0.7s linear infinite;
}

@keyframes drillSwalSpin {
    to { transform: rotate(360deg); }
}

.day-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
    max-height: 16rem;
    overflow-y: auto;
}
.day-timeline-slot {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    min-height: 2rem;
}
.day-timeline-hour {
    width: 3rem;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #71717a;
    padding-top: 0.25rem;
}
.day-timeline-bar {
    flex: 1;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
}
.day-timeline-bar.libre {
    background: rgba(39, 39, 42, 0.6);
    border-color: #3f3f46;
    color: #52525b;
}
.day-timeline-bar.ocupado {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(45, 212, 191, 0.35);
    color: #99f6e4;
    cursor: pointer;
}
.day-timeline-bar.ocupado:hover {
    background: rgba(20, 184, 166, 0.25);
}
