/* Filters Panel Footer */
.smc-filters-panel-footer {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--smc-gray-100);
    border-top: 1px solid var(--smc-gray-200);
    flex-shrink: 0;
}

.smc-filters-panel-footer .smc-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.smc-filters-reset-btn {
    background: var(--smc-gray-300);
    color: var(--smc-gray-900);
    min-width: 120px;
}

.smc-filters-reset-btn:hover {
    background: var(--smc-gray-400);
    transform: translateY(-2px);
}

.smc-filters-apply-btn {
    display: none; /* Hidden - filters auto-apply on change */
    background: var(--smc-primary);
    color: #fff;
}

.smc-filters-apply-btn:hover {
    background: var(--smc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 146, 175, 0.3);
}

/* Loading State for Filters */
.smc-filters-panel-body.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Filter Results Message */
.smc-filter-results-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
  /*  border-radius: var(--smc-border-radius); */
    color: #1565c0;
    font-size: 0.95rem;
    font-weight: 500;
}

.smc-filter-results-message svg {
    flex-shrink: 0;
    color: #1976d2;
}

/* Venue Header */
.smc-venues-header {
    color: #212529;
    padding: 1rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: var(--smc-border-radius) var(--smc-border-radius) 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
   /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-bottom: 2px solid var(--smc-gray-200);
    width: 100%;
    margin: 0 auto;
}

.smc-venues-label {
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smc-venues-label i {
    font-size: 1.25rem;
}

.smc-venues-names {
    font-size: 1.125rem;
    flex: 1;
}

/* Rounds List Wrapper */
.smc-rounds-list-wrapper {
    position: relative;
    min-height: fit-content;
}

.smc-rounds-container span.select2-results {
    padding: 6px;
    border: solid 1px #e3e3e3;
    border-radius: 1rem;
    background-color: white;
}

.smc-rounds-container .select2-dropdown {
    border:none;
    border-radius: 1rem;
    background-color: transparent;
}
.smc-rounds-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--smc-gray-200);
  /*  border-radius: var(--smc-border-radius); */
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Loading State for Rounds */
.smc-rounds-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--smc-border-radius);
    box-shadow: var(--smc-box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.smc-rounds-loading .smc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--smc-gray-300);
    border-top-color: var(--smc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.smc-round-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: .25rem 1.5rem;
    transition: var(--smc-transition);
    min-height: 70px;
}

.smc-round-item:hover {
    background: var(--smc-gray-100);
}

/* Completed matches - light gray background */
.smc-round-item:has(.winner),
.smc-round-item:has(.loser) {
    background: #fff;
}

.smc-round-number {
    flex: 0 0 50px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--smc-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px !important;
    max-width: 120px;
    min-width: 115px;
    margin-right: 20px;
}

.smc-round-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.smc-team-home,
.smc-team-away {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.smc-team-home {
    justify-content: flex-end;
    text-align: right;
}

.smc-team-away {
    justify-content: flex-start;
    text-align: left;
}

/* Winner styling - green background */
.smc-team-home.winner,
.smc-team-away.winner {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f6 100%);
    border: 1px solid #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
   /* padding: 6px; */
    border-radius: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.smc-team-home.winner .smc-team-name,
.smc-team-away.winner .smc-team-name {
    color: #2e7d32;
    font-weight: 600;
}

/* Loser styling - muted appearance */
.smc-team-home.loser,
.smc-team-away.loser {
    opacity: 0.6;
}

/* Cancelled match styling */
.smc-round-item.cancelled {
    background: #fee !important;
    /*border-left: 4px solid #dc3545; */
    opacity: 0.85;
    position: relative;
}

.smc-round-item.cancelled:hover {
    background: #fed !important;
}

.smc-round-item.cancelled .smc-team-name {
    text-decoration: line-through;
    color: #721c24;
}

.smc-round-item.cancelled .smc-round-number {
    color: #721c24;
}

.smc-round-item.cancelled::before {
    content: 'CANCELLED';
    position: absolute;
    top: 50;
    right: 16px;
    background: #dc3545;
    color: white;
    padding: 0px 8px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.smc-rounds-container .smc-team-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
    border: 2px solid var(--smc-gray-200);
    background: #fff;
    flex-shrink: 0;
    max-width: 40px !important;
    min-width: 40px !important;
}

.smc-team-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--smc-gray-200);
    flex-shrink: 0;
}

.smc-team-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--smc-gray-900);
}

h2.smc-dialog-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.smc-round-vs {
    flex: 0 0 auto;
    padding: 0.25rem 0.75rem;
    background: var(--smc-gray-100);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--smc-gray-700);
}

.smc-round-date {
    flex: 0 0 220px;
    text-align: right;
    font-size: 0.9375rem;
    color: var(--smc-gray-700);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.smc-round-date > span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.smc-round-date span i {
    font-size: 1rem;
    color: var(--smc-primary);
}

.smc-round-time {
    font-size: 0.875rem;
    color: var(--smc-primary);
    font-weight: 600;
}

.smc-round-time i {
    font-size: 1rem;
}

/* Rounds Pagination */
.smc-rounds-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--smc-gray-200);
    background-color: var(--e-global-color-0c1bb40);
    border-style: none;
    border-radius: 12px 16px 16px 16px;
    overflow: hidden;
    padding: 8px;
    margin-right: calc(-10px / 2);
    margin-left: calc(-10px / 2);
    margin-top: calc(-6px / 2);
    margin-bottom: calc(-6px / 2);
    width: fit-content;
    margin: 0 auto;
    margin-top: 10px;
}

.smc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid var(--smc-gray-300);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--smc-transition);
    padding: 6px 12px 6px 12px !important;
    border-radius: 16px 16px 16px 16px !important;
    background-color: var(--e-global-color-8054e71) !important;
    color: var(--e-global-color-e24e8d2) !important;
}

.smc-page-link:hover {
    background-color: var(--smc-primary) !important;
    color: #fff !important;
    border-color: var(--smc-primary);
    transform: translateY(-2px);
}

.smc-page-current {
    background-color: var(--smc-primary) !important;
    color: var(--e-global-color-8054e71) !important;
    border-color: var(--smc-primary);
    font-weight: 600;
    cursor: default;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.smc-page-current:hover {
    transform: none;
}

.smc-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    color: var(--smc-gray-500);
}

.smc-page-prev,
.smc-page-next {
    padding: 0 1rem;
    min-width: auto;
}
