@import url('tables.css');

/* --- League Tables Page Specific Styles --- */

.division-filter-container {
    justify-content: center; /* Center the division filter on mobile */
}

.tab-bar {
    margin-bottom: 20px; /* Increased buffer between tabs and the card */
}

.division-table.card {
    padding: var(--spacing-sm); /* Restore the small buffer */
    background-color: var(--pure-white);
    border: 1px solid var(--club-green);
    border-radius: var(--border-radius);
}

.division-table.card .styled-table {
    width: 100%;
}

.division-table.card .table-container {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: var(--border-radius);
}

.division-table.card:hover {
    transform: none; /* Removes the levitation effect on hover */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); /* maintain current card shadow */
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    padding: 1rem;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--off-white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--club-green);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-grey);
    line-height: 1;
    padding: 0;
}

.btn-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.table-actions .btn {
    width: 240px;
    max-width: 100%;
    text-align: center;
}
