.carousel-item {
    min-height: auto;
}

.custom-divider {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.custom-divider::after {
    flex: 1;
    content: '';
    height: 2px;
    background-color: #dee2e6;
    margin-left: 0.5rem;
}

/* Add visual feedback for clickable table rows */
.player-row:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
    cursor: pointer;
}

.expand-row {
    background-color: #f8f9fa;
}

/* Active Matches Display Modes - Grid only */
.activeMatches.display-grid .carousel-inner {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

/* Force exactly 2 columns for iPad landscape and similar widths */
@media (min-width: 700px) and (max-width: 1200px) {
    .activeMatches.display-grid .carousel-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.activeMatches.display-grid .carousel-item {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    /* Optional: shrink padding for smaller cards */
    padding: 0.5rem;
}

.activeMatches.display-grid .bg-light.p-3.rounded.text-center {
    padding: 1rem !important; /* Reduce padding inside the card */
    font-size: 0.95rem;       /* Slightly smaller text */
}

/* Limit table width and center it in grid view */
.activeMatches.display-grid .table-responsive {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Optionally, reduce table font size for grid view */
.activeMatches.display-grid table {
    font-size: 0.95rem;
}

/* Hide carousel controls in non-carousel modes */
.activeMatches:not(.display-carousel) .carousel-control-prev,
.activeMatches:not(.display-carousel) .carousel-control-next {
    display: none !important;
}

/* Toast container positioning */
.toast-container {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    padding: 1rem !important;
    z-index: 1055;
}

/* Enhanced toast styles */
.toast {
    min-width: 350px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    padding: 1rem !important;
}

.toast-body {
    padding: 1rem !important;
    font-size: 1.1rem;
}

/* Mobile responsive toasts */
@media (max-width: 576px) {
    .toast {
        min-width: 300px !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        padding: 0.5rem !important;
    }
}

/* Dark carousel arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* Podium Styles */
.podium-container {
    padding: 2rem 0;
}

.podium-position {
    position: relative;
    margin-bottom: 2rem;
}

.podium-player {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.podium-player:hover {
    transform: translateY(-5px);
}

.podium-base {
    height: 60px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    width: 80%;
}

.podium-first .podium-player {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9c4, #ffffff);
}

.podium-base-first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    height: 80px;
}

.podium-second .podium-player {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.podium-base-second {
    background: linear-gradient(135deg, #c0c0c0, #e2e2e2);
    height: 60px;
}

.podium-third .podium-player {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #fdf2e9, #ffffff);
}

.podium-base-third {
    background: linear-gradient(135deg, #cd7f32, #deb887);
    height: 40px;
}

/* Responsive podium */
@media (max-width: 768px) {
    .podium-container .row {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-container .col-md-3 {
        max-width: 300px;
        margin-bottom: 1rem;
    }
}

.vertical-align-bottom { 
    vertical-align: bottom; 
}

/* Material Icons Alignment - Improved */
.material-symbols-outlined {
    vertical-align: -0.125em; /* Fine-tuned baseline alignment */
    line-height: 1;
}

/* Specific adjustments for different icon sizes */
.material-symbols-outlined[style*="font-size: 16px"] {
    vertical-align: -0.1em; /* Slightly less offset for smaller icons */
}

.material-symbols-outlined[style*="font-size: 18px"] {
    vertical-align: -0.1em; /* Slightly less offset for smaller icons */
}

/* For icons in buttons and larger elements */
.btn .material-symbols-outlined,
h1 .material-symbols-outlined,
h2 .material-symbols-outlined,
h3 .material-symbols-outlined,
h4 .material-symbols-outlined,
h5 .material-symbols-outlined,
h6 .material-symbols-outlined {
    vertical-align: -0.15em; /* Better alignment for larger text */
}