﻿body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    touch-action: pan-y;
}

main {
    flex-grow: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.mw275 {
    min-width: 275px;
}

.accordion-button:not(.collapsed) {
    background-color: unset;
    color: unset;
}

/* Task Management Page Styles */
.task-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.task-card .text-muted {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.task-card .card-body > .row > div {
    margin-bottom: 0.75rem;
}

.task-status-running {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.task-log-console {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Responsive enhancements for RankingSearch component */
@media (max-width: 575.98px) {
    /* Mobile: Full width buttons with proper spacing in grid layout */
    .d-grid > button,
    .d-grid > .btn {
        width: 100%;
    }
}

/* Custom badge color classes for MenPai badges with proper text contrast */
/* These ensure the badge text is always readable against the background */

.text-bg-purple {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
}

.text-bg-cyan {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

.text-bg-indigo {
    background-color: #6610f2 !important;
    color: #ffffff !important;
}

.text-bg-teal {
    background-color: #20c997 !important;
    color: #000000 !important;
}

.text-bg-pink {
    background-color: #d63384 !important;
    color: #ffffff !important;
}

.text-bg-orange {
    background-color: #fd7e14 !important;
    color: #000000 !important;
}

