/* High contrast styles for dark theme */
.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.card-title {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Tabulator table styling for dark theme */
.tabulator {
    background-color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3f4f6;
}

.tabulator-header {
    background-color: #374151 !important;
    border-bottom: 2px solid #4b5563 !important;
    color: #ffffff !important;
}

.tabulator-col {
    background-color: #374151 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tabulator-col-title {
    color: #ffffff !important;
    font-weight: 600;
}

.tabulator-col-content {
    color: #ffffff !important;
}

.tabulator-row {
    background-color: #1f2937;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

.tabulator-row.tabulator-row-even {
    background-color: #111827;
}

.tabulator-row:hover {
    background-color: #374151 !important;
}

.tabulator-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

/* Row detail container styling */
.row-detail-container {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.03);
}

.tabulator-footer {
    background-color: #374151 !important;
    border-top: 2px solid #4b5563 !important;
    color: #f3f4f6 !important;
}

.tabulator .tabulator-footer .tabulator-page {
    background-color: #4b5563 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #f3f4f6 !important;
    margin: 0 4px;
    border-radius: 4px;
}

.tabulator .tabulator-footer .tabulator-page.active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    font-weight: 600;
}

.tabulator .tabulator-footer .tabulator-page:not(.active):hover {
    background-color: #6b7280 !important;
    color: #ffffff !important;
}

.tabulator .tabulator-footer .tabulator-page[disabled],
.tabulator .tabulator-footer .tabulator-page.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: #4b5563 !important;
}

.tabulator-paginator {
    color: #f3f4f6 !important;
}

.tabulator-pages {
    color: #f3f4f6 !important;
}

/* Custom expand button styling */
.expand-btn {
    background-color: #10b981;
    border: 2px solid white;
    border-radius: 14px;
    box-shadow: 0 0 3px #444;
    color: white;
    display: inline-block;
    font-family: Courier, fixed-width;
    font-size: 12px;
    font-weight: bold;
    height: 18px;
    line-height: 14px;
    text-align: center;
    width: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.expand-btn:hover {
    background-color: #059669;
    transform: scale(1.1);
}

.tabulator-row.shown .expand-btn {
    background-color: #dc2626;
}

.tabulator-row.shown .expand-btn:hover {
    background-color: #b91c1c;
}

/* Child row content styling */
.child-row-content {
    background-color: rgba(55, 65, 81, 0.5);
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.child-row-content table {
    width: 100%;
    border-spacing: 8px 4px;
}

.child-row-content td:first-child {
    font-weight: 600;
    color: #9ca3af;
    min-width: 140px;
}

.child-row-content td:last-child {
    color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tabulator-paginator {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Enhanced card styling for statistics */
.card-body p.text-2xl {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced navigation bar */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.navbar h1 {
    color: #ffffff;
    font-weight: 600;
}

/* Enhanced form controls */
.form-control .label-text {
    color: #e5e7eb;
    font-weight: 500;
}

/* Enhanced input styling */
.input, .select {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.input:focus, .select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Enhanced button styling */
.btn {
    font-weight: 500;
}

.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* High contrast badge styling */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Enhanced filter section */
.form-control .label {
    padding-bottom: 0.25rem;
}

.join .btn {
    font-weight: 500;
}

/* Date input styling */
input[type="date"] {
    cursor: pointer;
}

/* High contrast alert styling */
.alert {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.chart-container canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Record count display */
#filtered-count {
    font-size: 0.875rem;
}
