/* BUTTONS */
.btn-primary {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #333;
    border-color: #666;
}

.btn-sm-outline {
    background: none;
    border: 1px solid #444;
    color: #888;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 8px;
    transition: all 0.2s;
}

.btn-sm-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ROLE BUTTON */
.role-btn {
    background: #111;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-heading);
}

.role-btn:hover {
    border-color: #666;
}

.role-btn[data-role="admin"] {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
}

/* ADMIN STATS */
.stats {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    font-family: var(--font-heading);
    background: #111;
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid #333;
}

.stats__item {
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stats__highlight {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 5px;
}

/* CONTROLS SECTION */
.controls-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.court-select {
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
    margin-left: 10px;
    min-width: 200px;
}

/* WEEK NAVIGATION */
.week-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.week-nav__group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #000;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid #333;
}

.week-nav__display {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    letter-spacing: 0.02em;
}

.week-nav__label {
    font-size: 0.8rem;
    color: #888;
    margin-right: 8px;
    font-weight: 500;
}

.nav-btn {
    /* Generic Nav Button Base */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn--arrow {
    background: transparent;
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    padding-bottom: 3px;
    /* visual center fix */
}

.nav-btn--arrow:hover {
    background: #222;
    color: var(--primary-color);
}

.nav-btn--arrow:active {
    transform: scale(0.95);
}

.nav-btn--today {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.15);
    transition: all 0.2s;
}

.nav-btn--today:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.4);
    transform: scale(1.04);
}

.client-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #222;
    border-radius: 4px;
    font-size: 0.9rem;
}

.client-phone {
    font-size: 0.75rem;
    color: #888;
}

.client-visits {
    font-size: 0.75rem;
}

.client-spent {
    text-align: right;
    font-weight: bold;
}

.client-name {
    font-weight: bold;
    color: #fff;
}

.nav-btn--today:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* WEEK PICKER */
.week-picker {
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.week-picker:focus {
    border-color: var(--primary-color);
}

.week-picker::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.week-picker::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* DATA TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

.data-table th {
    background: #000;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

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

/* STATUS BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge--ok {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.badge--warn {
    background: rgba(255, 174, 0, 0.1);
    color: #ffae00;
    border: 1px solid #ffae00;
}

/* KPI CARDS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.kpi-card--highlight {
    background: #1a1a1a;
    border-color: var(--primary-color);
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* =========================================
   SPACING & SIZING UTILITIES
   ========================================= */
.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.no-mb {
    margin-bottom: 0 !important;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.w-100 {
    width: 100%;
}

.d-block {
    display: block;
}

/* Close Button (Generic) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}

/* =========================================
   TEXT UTILITIES (Typography Atoms)
   ========================================= */
.text-muted {
    color: #888;
}

.text-light {
    color: #bbb;
}

.text-white {
    color: #fff;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-neon-green {
    color: #00ff88;
}

.font-bold {
    font-weight: bold;
}

.font-xl {
    font-size: 1.5rem;
}

.font-2xl {
    font-size: 2rem;
}

.font-sm {
    font-size: 0.85rem;
}

.font-xs {
    font-size: 0.75rem;
}

/* Medal Colors */
.text-gold {
    color: #FFD700;
}

.text-silver {
    color: #C0C0C0;
}

.text-bronze {
    color: #CD7F32;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* =========================================
   COMPONENT BLOCKS
   ========================================= */

/* Section Header (replaces repeated h3 styles) */
.section-header {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header--small {
    margin-bottom: 15px;
}

/* Data Lists (Flex Column) */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-list--gap-sm {
    gap: 5px;
}

.data-list--gap-lg {
    gap: 15px;
}

/* Scrollable Container (Generic) */
.scroll-container {
    overflow-y: auto;
}

.scroll-container--h200 {
    max-height: 200px;
}

.scroll-container--h400 {
    max-height: 400px;
}

/* Separator Line */
.separator {
    height: 1px;
    background: #333;
    width: 100%;
    margin: 15px 0;
}

/* Tags (Leaks, etc) */
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.tag--danger-dark {
    background: #331111;
    color: #ff6666;
    border-color: #552222;
}

.tag--info {
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
}

/* MVP Card Internal Structure */
.mvp-card__header {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.mvp-card__body {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Net Profit Card Internal Structure */
.profit-stat-row {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.profit-total-row {
    border-top: 1px solid #333;
    margin-top: 5px;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Cash Close Card */
.cash-close-header {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.cash-info-row {
    display: flex;
    justify-content: space-between;
    color: #bbb;
    margin-bottom: 5px;
}

.cash-diff-card {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    display: none;
    /* Controlled by state ideally, currently inline via JS logic */
}

/* Help Box */
.help-box {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
    color: #ccc;
}

.close-btn:hover {
    color: #fff;
}

.kpi-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* THEME SELECTOR */
.theme-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Sport-specific colors for borders */
.theme-btn[data-theme="futbol"] {
    border-color: #00ff88;
    color: #00ff88;
}

.theme-btn[data-theme="padel"] {
    border-color: #00ccff;
    color: #00ccff;
}

.theme-btn[data-theme="basquet"] {
    border-color: #ff5e00;
    color: #ff5e00;
}

.theme-btn[data-theme="tenis"] {
    border-color: #dfff00;
    color: #dfff00;
}

/* Active state - fill with sport color */
.theme-btn.active {
    color: #000;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.theme-btn[data-theme="futbol"].active {
    background: #00ff88;
    border-color: #00ff88;
}

.theme-btn[data-theme="padel"].active {
    background: #00ccff;
    border-color: #00ccff;
}

.theme-btn[data-theme="basquet"].active {
    background: #ff5e00;
    border-color: #ff5e00;
}

.theme-btn[data-theme="tenis"].active {
    background: #dfff00;
    border-color: #dfff00;
}


/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast--visible {
    transform: translateY(0);
    opacity: 1;
}

.toast--success {
    border-left: 4px solid var(--success, #4CAF50);
}

.toast--error {
    border-left: 4px solid var(--danger, #f44336);
}

/* =========================================
   LIST ITEMS
   ========================================= */
.list-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding: 8px 0;
    align-items: center;
}


/* =========================================
   KPI CARDS VARIANTS
   ========================================= */
.kpi-card--loyalty {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
}

.kpi-card--gold {
    border-top: 3px solid #FFD700;
}

.kpi-card--silver {
    border-top: 3px solid #C0C0C0;
}

.kpi-card--bronze {
    border-top: 3px solid #CD7F32;
}

.kpi-card--new {
    border-top: 3px solid #00ff88;
}

.kpi-card--danger {
    border-left: 3px solid var(--danger);
}

.kpi-card--mvp {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #000;
    border: none;
    position: relative;
    overflow: hidden;
}

.mvp-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.2;
}

.mvp-avatar {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border: 3px solid #000;
}

/* =========================================
   SCROLLABLE LISTS
   ========================================= */
.scrollable-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.scrollable-list--short {
    max-height: 200px;
}

/* =========================================
   STATS TYPOGRAPHY
   ========================================= */
.stat-highlight {
    color: #4CAF50;
    font-weight: bold;
    font-size: 2rem;
}

.stat-separator {
    color: #333;
    font-size: 2rem;
}

/* =========================================
   FORM ELEMENTS (Consolidated)
   ========================================= */
.input-dark {
    font-size: 1rem;
    color: #fff;
    background: #222;
    border: 1px solid #444;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.input-promo {
    border-color: var(--success, #4CAF50);
    background: rgba(76, 175, 80, 0.1);
}

.input-promo:focus {
    border-color: var(--success, #4CAF50);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Compact checkbox for day selection */
.checkbox-container--compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-container--compact:hover {
    background: #222;
    border-color: var(--primary-color);
}

.checkbox-container--compact input[type="checkbox"]:checked+.checkmark {
    background: var(--success, #4CAF50);
}

/* =========================================
   PROMO TOGGLE - PROMINENT ACTIVATION
   ========================================= */
.promo-toggle-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.promo-toggle-container:has(input:checked) {
    border-color: var(--success, #4CAF50);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.promo-toggle-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-toggle-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.promo-toggle-info {
    flex: 1;
}

.promo-toggle-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.promo-toggle-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Toggle Switch (iOS style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 38px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    border-radius: 34px;
    transition: all 0.3s;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--success, #4CAF50);
    box-shadow: inset 0 2px 10px rgba(76, 175, 80, 0.5), 0 0 15px rgba(76, 175, 80, 0.3);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(32px);
}

.toggle-switch:hover .toggle-slider {
    filter: brightness(1.2);
}

/* Hour Selection Grid */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.hour-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.hour-checkbox:hover {
    background: #222;
    border-color: var(--primary-color);
}

.hour-checkbox input[type="checkbox"] {
    display: none;
}

.hour-checkbox input[type="checkbox"]:checked+.hour-label {
    color: var(--success, #4CAF50);
    font-weight: bold;
}

.hour-checkbox:has(input:checked) {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success, #4CAF50);
}

.hour-label {
    font-size: 0.9rem;
    color: #888;
    transition: all 0.2s;
}

.hour-checkbox:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================
   TICKET MODAL
   ========================================= */
.modal-content--ticket {
    max-width: 350px;
    background: #fff;
    color: #000;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.ticket-header {
    background: var(--primary-color);
    padding: 15px;
    text-align: center;
}

.ticket-title {
    margin: 0;
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.5rem;
}

.ticket-subtitle {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.ticket-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    border-bottom: 2px dashed #ccc;
}

.ticket-footer {
    padding: 20px;
    background: #f9f9f9;
    text-align: center;
}

.btn-whatsapp {
    width: 100%;
    margin-bottom: 10px;
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================
   RESERVATION MODAL ENHANCEMENTS
   ========================================= */

/* Reservation Header */
.reservation-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.reservation-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.reservation-details {
    flex: 1;
}

.reservation-title {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 8px 0;
}

.reservation-datetime {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.reservation-court {
    color: #888;
    font-size: 0.95rem;
}

/* =========================================
   CONFIRMATION MODAL
   ========================================= */
.modal-content--confirm {
    max-width: 600px;
}

.confirm-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.confirm-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.confirm-title {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 8px 0;
}

.confirm-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.confirm-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirm-section {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.confirm-section--price {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-color: var(--primary-color);
}

.confirm-section-title {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.confirm-info-row:last-child {
    margin-bottom: 0;
}

.confirm-label {
    color: #888;
    font-size: 0.9rem;
}

.confirm-value {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.confirm-value-large {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.confirm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-price-label {
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
}

.confirm-price-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

/* =========================================
   FORM INPUT SIZES
   ========================================= */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    font-size: 1rem;
    padding: 12px 15px;
    min-height: 45px;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

/* Radio Group for Payment Methods */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--card-bg-hover, #2a2a2a);
    border: 1px solid var(--border-color, #444);
    border-radius: 8px;
    color: var(--text-muted, #888);
    font-weight: 600;
    transition: all 0.2s;
    height: 100%;
}

.radio-label input:checked+.radio-btn {
    background-color: rgba(223, 255, 0, 0.1);
    border-color: var(--neon-green, #dfff00);
    color: var(--neon-green, #dfff00);
    box-shadow: 0 0 10px rgba(223, 255, 0, 0.2);
}

.radio-label:hover .radio-btn {
    border-color: var(--text-light, #ccc);
}

/* =========================================
   NUEVOS ESTILOS DE CONFIGURACIÓN
   ========================================= */

/* Checkbox Pills (Para seleccionar Deportes) */
.checkbox-pill input {
    display: none;
}

.checkbox-pill input:checked+span {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.checkbox-pill:has(input:checked) {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.checkbox-pill:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Checkbox Square (Para Días y Horas) */
.check-box-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #888;
    user-select: none;
    transition: all 0.2s;
}

.check-box-square input {
    display: none;
}

/* Cuando está seleccionado */
.check-box-square:has(input:checked) {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cuando está deshabilitado */
.check-box-square:has(input:disabled) {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   INCOME DASHBOARD PREMIUM STYLES
   ========================================= */

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-grid--top-gap {
    margin-top: 20px;
}

/* KPI CARDS */
.kpi-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.kpi-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.kpi-card.grid-row-span-2 {
    grid-row: span 2;
}

.kpi-card--highlight {
    background: linear-gradient(160deg, #1a1a1a 0%, #111 60%);
    border: 1px solid #444;
}

.kpi-card--glass {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* TYPOGRAPHY */
.section-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.section-header--small {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.stat-highlight {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* PROFIT CARD */
.profit-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ccc;
}

.profit-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CHART BARS (Simple CSS Charts) */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-chart-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
}

.bar-chart-label {
    width: 60px;
    text-align: right;
    color: #888;
}

.bar-chart-track {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-chart-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.bar-chart-value {
    width: 80px;
    text-align: right;
    font-weight: bold;
    color: #fff;
}

/* TAGS */
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.tag--warning {
    background: #ffc107;
    color: #000;
}

.tag--info {
    background: #17a2b8;
    color: #fff;
}

/* =========================================
   DATE INPUT IMPROVEMENTS
   ========================================= */

/* Invert calendar icon color to white for dark backgrounds and make it larger */
.input-dark::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.input-dark::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Make the whole input trigger the picker effectively */
.input-dark[type="date"] {
    cursor: pointer;
}

/* Make the Block Button more visible */
.btn-block-action {
    font-size: 1.1rem !important;
    padding: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    transition: all 0.2s ease;
}

.btn-block-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
}

/* =========================================
   TOGGLE SWITCH COMPONENT
   ========================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    -webkit-transition: .4s;
    transition: .4s;
    border: 1px solid #555;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #ffc107;
    /* Premium Gold/Yellow */
    border-color: #ffc107;
}

input:focus+.slider {
    box-shadow: 0 0 1px #ffc107;
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #000;
    /* Contrast notch */
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* =========================================
   PAYMENT MODAL
   ========================================= */
.payment-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.payment-modal {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    max-width: 400px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-modal h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.payment-modal label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    margin-top: 5px;
}

.payment-modal input,
.payment-modal select {
    margin-top: 3px;
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    background: #222;
    color: #fff;
}

/* BOTONES DEL MODAL */
.payment-modal button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.payment-modal button#modalCancel {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.payment-modal button#modalConfirm {
    background: var(--primary-color, #0f0);
    color: #000;
}

/* ------------------ BOTONES EN TARJETA ------------------ */
.btn-pay {
    background: var(--primary-color, #0f0);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-pay:hover {
    background: #fff200;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.2);
}