.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.dashboard-header {
    background: #198754;
    border-radius: 12px 12px 0 0;
    padding: 2rem;
    margin: 0;
    color: white;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.stat-icon-modern.green {
    background: #198754;
    color: white;
}

.stat-icon-modern.teal {
    background: #20c997;
    color: white;
}

.stat-icon-modern.emerald {
    background: #069e5f;
    color: white;
}

.stat-icon-modern.lime {
    background: #84cc16;
    color: white;
}

.stat-icon-modern.blue {
    background: #0d6efd;
    color: white;
}

.stat-icon-modern.red {
    background: #dc3545;
    color: white;
}

.stat-icon-modern.orange {
    background: #fd7e14;
    color: white;
}

.stat-icon-modern.purple {
    background: #6f42c1;
    color: white;
}

 .stat-icon-modern.green { background: #198754; color: white; }
    .stat-icon-modern.teal { background: #20c997; color: white; }
    .stat-icon-modern.emerald { background: #069e5f; color: white; }
    .stat-icon-modern.lime { background: #84cc16; color: white; }
    .stat-icon-modern.blue { background: #0d6efd; color: white; }
    .stat-icon-modern.red { background: #dc3545; color: white; }
    .stat-icon-modern.orange { background: #fd7e14; color: white; }
    .stat-icon-modern.purple { background: #6f42c1; color: white; }


.stat-value-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0.5rem 0;
}

.stat-label-modern {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title i {
    color: #198754;
}

.revenue-chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.action-buttons-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    width: fit-content;
    margin-left: auto;
}

.btn-header {
    background: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #198754;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #146c43;
    transform: translateY(-1px);
}

.btn-back-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 1rem;
}

.btn-back-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateX(-3px);
}

.config-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.config-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.config-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-card-title i {
    color: #198754;
    font-size: 1.1rem;
}

.section-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.0rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.section-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #198754;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card-title i {
    color: #198754;
    font-size: 1.2rem;
}

.table-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.config-tabs {
    background: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.config-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.config-tab-btn:hover {
    background: rgba(25, 135, 84, 0.05);
    color: #198754;
}

.config-tab-btn.active {
    color: #198754;
    border-bottom-color: #198754;
    background: rgba(25, 135, 84, 0.05);
}

.config-tab-btn i {
    font-size: 1.1rem;
}

.tab-error-badge {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    animation: errorPulse 1.5s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.tab-content-wrapper {
    display: none;
}

.tab-content-wrapper.active {
    display: block;
}

@media (max-width: 768px) {
    .config-tab-btn {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        justify-content: center;
    }

    .config-tab-btn span {
        display: none;
    }

    .config-tab-btn i {
        margin: 0;
    }
}

.form-section {
    padding: 2rem 1.5rem;
}

.table-modern {
    margin: 0;
}

.table-modern thead {
    background: #f8f9fa;
}

.table-modern th {
    border: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

.table-modern td {
    border: none;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    vertical-align: middle;
}

.status-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill.entry {
    background: #198754;
    color: white;
}

.status-pill.exit {
    background: #0d6efd;
    color: white;
}

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

html[data-theme="dark"] .stat-card-modern {
    background: var(--panel-card-bg, #1e293b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .stat-card-modern:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .stat-value-modern {
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .stat-label-modern {
    color: var(--panel-text-muted, #94a3b8);
}

html[data-theme="dark"] .chart-card {
    background: var(--panel-card-bg, #1e293b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .chart-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .chart-title {
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .config-card {
    background: var(--panel-card-bg, #1e293b);
    border-color: var(--panel-card-border, #334155);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .config-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .config-card-title {
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .section-card {
    background: var(--panel-card-bg, #1e293b);
    border-color: var(--panel-card-border, #334155);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .section-card-title {
    color: var(--panel-text-primary, #e2e8f0);
    border-bottom-color: #198754;
}

html[data-theme="dark"] .table-card {
    background: var(--panel-card-bg, #1e293b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .config-tabs {
    background: var(--panel-card-bg, #1e293b);
    border-bottom-color: var(--panel-card-border, #334155);
}

html[data-theme="dark"] .config-tab-btn {
    color: var(--panel-text-muted, #94a3b8);
}

html[data-theme="dark"] .config-tab-btn:hover {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

html[data-theme="dark"] .config-tab-btn.active {
    color: #198754;
    border-bottom-color: #198754;
    background: rgba(25, 135, 84, 0.1);
}

html[data-theme="dark"] .table-modern thead {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .table-modern th {
    color: var(--panel-text-muted, #94a3b8);
}

html[data-theme="dark"] .table-modern td {
    border-top-color: var(--panel-card-border, #334155);
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .card {
    background: var(--panel-card-bg, #1e293b) !important;
    border-color: var(--panel-card-border, #334155) !important;
}

html[data-theme="dark"] .btn-back-arrow,
html[data-theme="dark"] .btn-back-arrow:hover,
html[data-theme="dark"] .btn-back-arrow:focus,
html[data-theme="dark"] .btn-back-arrow:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .btn-back-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .help-icon {
    color: #4ade80;
}

html[data-theme="dark"] .introjs-tooltip {
    background-color: var(--panel-card-bg, #1e293b);
   
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .introjs-tooltiptext {
    color: var(--panel-text-primary, #e2e8f0);
}

html[data-theme="dark"] .introjs-arrow.top {
    border-bottom-color: var(--panel-card-bg, #1e293b);
}

html[data-theme="dark"] .introjs-arrow.bottom {
    border-top-color: var(--panel-card-bg, #1e293b);
}

html[data-theme="dark"] .introjs-arrow.left {
    border-right-color: var(--panel-card-bg, #1e293b);
}

html[data-theme="dark"] .introjs-arrow.right {
    border-left-color: var(--panel-card-bg, #1e293b);
}

html[data-theme="dark"] .introjs-button {
    background-color: var(--panel-card-bg, #1e293b);
    border-color: var(--panel-card-border, #334155);
    color: var(--panel-text-primary, #e2e8f0);
    text-shadow: none;
}

html[data-theme="dark"] .introjs-button:hover,
html[data-theme="dark"] .introjs-button:focus {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .introjs-helperLayer {
    background-color: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

html[data-theme="dark"] .introjs-tooltip-header {
    border-bottom-color: var(--panel-card-border, #334155);
}

html[data-theme="dark"] .introjs-skipbutton {
    color: var(--panel-text-primary, #e2e8f0);
}

html [wire\:loading\.class~="opacity-50"] {
    opacity: 1;
}
html [wire\:loading\.class~="opacity-50"].opacity-50 {
    opacity: 0.5;
    transition: opacity 0.15s;
}

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

/* Tablets and smaller desktops */
@media (max-width: 991.98px) {
    .dashboard-header {
        min-height: 140px;
        padding: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.6rem;
    }

    .action-buttons-box {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {
    .dashboard-header {
        min-height: 160px;
        padding: 1.25rem;
        border-radius: 10px 10px 0 0;
    }

    .dashboard-header .row {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-header .col-lg-8,
    .dashboard-header .col-lg-4 {
        width: 100%;
    }

    .dashboard-title {
        font-size: 1.35rem;
    }

    .btn-back-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .action-buttons-box {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }

    .btn-header {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }

    

    .table-card {
        padding: 1rem;
    }

    .form-section {
        padding: 1.25rem 1rem;
    }

    .stat-card-modern {
        padding: 1rem;
    }

    .stat-value-modern {
        font-size: 1.4rem;
    }

    .chart-card {
        padding: 1.25rem;
    }

    .revenue-chart-container {
        height: 220px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .dashboard-header {
        min-height: 150px;
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.2rem;
    }

    .btn-back-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 0.6rem;
    }

    .btn-header {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }


    .section-card-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .table-card {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .config-card {
        padding: 1rem;
    }

    .config-card-title {
        font-size: 0.95rem;
    }

    .stat-icon-modern {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .stat-value-modern {
        font-size: 1.25rem;
    }

    .stat-label-modern {
        font-size: 0.8rem;
    }
}

.help-icon {
    color: #28a745;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.help-icon:hover {
    opacity: 1;
}

.form-group .form-label {
    font-weight: 600;
}

/* ====== CREATE/EDIT GROUP SHARED STYLES ====== */

.cg-text-muted {
    color: var(--panel-text-muted, #6c757d) !important;
}

.cg-btn-outline {
    border: 1px solid var(--panel-primary, #4f46e5);
    color: var(--panel-primary, #4f46e5);
    background: transparent;
    border-radius: var(--panel-radius, 8px);
    font-size: 13px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.cg-btn-outline:hover {
    background: var(--panel-primary, #4f46e5);
    color: #fff;
}

.cg-btn-primary {
    background: var(--panel-primary, #4f46e5);
    color: #fff;
    border: none;
    border-radius: var(--panel-radius, 8px);
    font-size: 13px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.cg-btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}

.cg-badge-count {
    background: var(--panel-card-border, #e2e8f0);
    color: var(--panel-text-muted, #6c757d);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.cg-badge-primary {
    background: color-mix(in srgb, var(--panel-primary, #4f46e5) 15%, transparent);
    color: var(--panel-primary, #4f46e5);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.cg-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    background: var(--panel-content-bg, #f4f6f9);
    border: 1px solid var(--panel-card-border, #e2e8f0);
    color: var(--panel-text-primary, #333);
}

.cg-selector-panel {
    padding: 10px 14px;
    background: var(--panel-content-bg, #f4f6f9);
    border-radius: var(--panel-radius, 8px);
    border-left: 3px solid var(--panel-primary, #4f46e5);
}

.cg-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--panel-card-border, #e2e8f0);
    font-size: 15px;
}

html[data-theme="dark"] .cg-badge-count {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Navbar Widgets ── */
.navbar-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
   
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--panel-navbar-icons, #64748b);
    cursor: default;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.navbar-widget-icon {
    font-size: 0.75rem;
    color: var(--panel-navbar-icons, #64748b);
}

.navbar-widget-count {
    font-weight: 700;
    color: var(--panel-navbar-text, #334155);
}

.navbar-widget-label {
    font-size: 0.75rem;
    color: var(--panel-navbar-icons, #64748b);
}

html[data-theme="dark"] .navbar-widget {
    border-color: var(--panel-navbar-icons, #475569);
}

html[data-theme="dark"] .navbar-widget-icon,
html[data-theme="dark"] .navbar-widget-label {
    color: var(--panel-navbar-icons, #94a3b8);
}

html[data-theme="dark"] .navbar-widget-count {
    color: var(--panel-navbar-text, #e2e8f0);
}

@media (max-width: 768px) {
    .navbar-widget {
        display: none;
    }
}

/* ── Popover Remaining Stats ── */
.popover-remaining-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .popover-remaining-row {
        display: flex;
    }
}

.popover-remaining-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.popover-remaining-chip {
    font-weight: 700;
    font-size: 0.72rem;
    color: #1e293b;
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

html[data-theme="dark"] .popover-remaining-label {
    color: var(--panel-text-muted, #94a3b8);
}

html[data-theme="dark"] .popover-remaining-chip {
    color: var(--panel-text-primary, #e2e8f0);
    background: rgba(255, 255, 255, 0.08);
}

