.sidebar[data-color=purple] li > a.active  {
    background-color: #9c27b0;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(156,39,176,.4)
}

.sidebar[data-color=azure] li > a.active  {
    background-color: #00bcd4;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(0,188,212,.4)
}

.sidebar[data-color=green] li > a.active  {
    background-color: #4caf50;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(76,175,80,.4)
}

.sidebar[data-color=orange] li > a.active  {
    background-color: #ff9800;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(255,152,0,.4)
}

.sidebar[data-color=danger] li > a.active  {
    background-color: #f44336;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(244,67,54,.4)
}

.sidebar[data-color=rose] li > a.active  {
    background-color: #e91e63;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(233,30,99,.4)
}

.sidebar[data-color=white] li > a.active  {
    background-color: #fff;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px hsla(0,0%,100%,.4)
}

.sidebar .nav li >a.active,.sidebar .nav li>a.active i {
    color: #fff
}

.avatar {
    max-width: 130px;
    max-height: 180px;
}

.avatar {
    margin: -50px auto 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, .56), 0 4px 25px 0 rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
}

.card-header-primary {
    background: linear-gradient(60deg, #ab47bc, #8e24aa);
}

.badge {
    font-size: 0.8em;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-label {
    cursor: pointer;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* New styles for tournament type selector */
.tournament-type-selector {
    display: flex;
    gap: 1rem; /* Space between options */
    margin-top: 1rem;
}

.tournament-type-option {
    flex: 1; /* Make options take equal width */
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-type-option.selected {
    background-color: #f0f0f0;
    border-color: #ab47bc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tournament-type-option .type-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-type-option .type-icon {
    font-size: 1.2em;
    color: #ab47bc;
}

.tournament-type-option .type-info {
    display: flex;
    flex-direction: column;
}

.tournament-type-option .type-info strong {
    font-size: 1em;
}

.tournament-type-option .type-info small {
    font-size: 0.7em;
}

/* New styles for groups preview */
.groups-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.group-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.9em;
}

.group-preview-item .badge {
    font-size: 0.7em;
}

.group-preview-item .group-count {
    font-weight: bold;
}

/* New styles for groups containers */
.groups-container {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.group-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.group-header .group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1em;
    color: #333;
}

.group-header .group-title i {
    color: #ab47bc;
}

.group-header .group-count-badge {
    background-color: #ab47bc;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.group-teams {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.group-team-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
}

.group-team-item .team-avatar {
    font-size: 1.5em;
    color: #ab47bc;
}

.group-team-item .team-details {
    display: flex;
    flex-direction: column;
}

.group-team-item .team-name {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.group-team-item .team-category {
    font-size: 0.75em;
    color: #666;
}

/* New styles for teams preview */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.team-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.team-card .team-info {
    display: flex;
    flex-direction: column;
}

.team-card .team-name {
    font-weight: bold;
    font-size: 1em;
    color: #333;
}

.team-card .team-category {
    font-size: 0.8em;
    color: #666;
}

/* New styles for info card */
.info-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Responsive design for tournament type selector */
@media (max-width: 768px) {
    .tournament-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tournament-type-option {
        flex: none;
    }
    
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .groups-container {
        margin-top: 1rem;
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .group-team-item {
        width: 100%;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .groups-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hover effects */
.tournament-type-option:hover {
    background-color: #f8f9fa;
    border-color: #ab47bc;
}

.team-card:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.group-team-item:hover {
    background-color: #f8f9fa;
    border-color: #ab47bc;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Animation for group containers */
.group-container {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom radio button styling */
.tournament-type-option input[type="radio"] {
    display: none;
}

.tournament-type-option label {
    cursor: pointer;
    margin: 0;
    width: 100%;
}

/* Focus states for accessibility */
.tournament-type-option:focus-within {
    outline: 2px solid #ab47bc;
    outline-offset: 2px;
}

/* New styles for configuration and preview panels */
.config-panel, .preview-panel {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    min-height: 500px;
}

.config-panel h5, .preview-panel h5 {
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ab47bc;
}

.config-panel h6, .preview-panel h6 {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Small teams grid for config panel */
.teams-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.team-card-small {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.8em;
}

.team-card-small .team-name {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.team-card-small .team-category {
    font-size: 0.7em;
    color: #666;
}

/* Small groups container for config panel */
.groups-container-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.group-container-small {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem;
}

.group-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eee;
}

.group-title-small {
    font-size: 0.9em;
    color: #333;
    margin: 0;
}

.group-count-badge-small {
    background-color: #ab47bc;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

.group-teams-small {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.group-team-item-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8em;
}

.team-avatar-small {
    font-size: 1em;
    color: #ab47bc;
}

.team-name-small {
    font-weight: bold;
    font-size: 0.8em;
    color: #333;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    font-size: 0.9em;
    min-width: 120px;
    max-width: 200px;
}

/* Preview panel styles */
.no-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.matches-preview-container {
    max-height: 400px;
    overflow-y: auto;
}

.preview-summary {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.summary-item {
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}

.summary-item:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .config-panel, .preview-panel {
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .groups-container-small {
        grid-template-columns: 1fr;
    }
    
    .teams-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Group management styles */
.group-management-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.group-management-controls .btn {
    font-size: 0.8em;
    padding: 0.3rem 0.6rem;
}

.group-team-item-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8em;
    position: relative;
}

.team-actions-small {
    display: flex;
    gap: 0.2rem;
    margin-left: auto;
}

.team-actions-small .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7em;
    line-height: 1;
}

.add-team-to-group {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.add-team-to-group select {
    font-size: 0.8em;
    padding: 0.3rem 0.5rem;
}

.unassigned-teams {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
}

.unassigned-teams h6 {
    color: #856404;
    margin-bottom: 0.8rem;
}

.unassigned-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.unassigned-team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.9em;
}

.unassigned-team-item .team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unassigned-team-item .team-actions select {
    font-size: 0.8em;
    padding: 0.3rem 0.5rem;
    min-width: 150px;
}

/* Hover effects for group management */
.group-team-item-small:hover {
    background-color: #e9ecef;
    border-color: #ab47bc;
}

.team-actions-small .btn:hover {
    transform: scale(1.05);
}

.unassigned-team-item:hover {
    background-color: #f8f9fa;
    border-color: #ab47bc;
}

/* Animation for group changes */
.group-container-small {
    transition: all 0.3s ease;
}

.group-team-item-small {
    transition: all 0.2s ease;
}

/* Responsive adjustments for group management */
@media (max-width: 768px) {
    .group-management-controls {
        flex-direction: column;
    }
    
    .group-management-controls .btn {
        width: 100%;
    }
    
    .unassigned-team-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .unassigned-team-item .team-actions select {
        width: 100%;
    }
    
    .team-actions-small {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .team-actions-small .btn {
        width: 100%;
    }
}

/* Public visibility controls styles */
.public-visibility-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.public-visibility-section h6 {
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 0.9em;
    font-weight: 600;
}

.public-visibility-section .form-check {
    margin-bottom: 0.5rem;
}

.public-visibility-section .form-check:last-child {
    margin-bottom: 0;
}

.public-visibility-section .form-check-label {
    font-size: 0.85em;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.public-visibility-section .form-check-label i {
    margin-right: 0.5rem;
    color: #ab47bc;
    width: 16px;
}

.public-visibility-section .form-check-input:checked + .form-check-label {
    color: #333;
    font-weight: bold;
}

.public-visibility-section .form-check-input:checked + .form-check-label i {
    color: #28a745;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: none;
    }
}

/* Existing match styles */
.existing-match {
    background-color: #f8f9fa !important;
}

.existing-match td {
    border-color: #dee2e6;
}

.existing-match .form-control-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.existing-match .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Match status badges */
.badge.bg-warning {
    color: #000;
}

.badge.bg-info {
    color: #fff;
}

.badge.bg-success {
    color: #fff;
}

.badge.bg-danger {
    color: #fff;
}

.badge.bg-secondary {
    color: #fff;
}

.tournament-preview-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tournament-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.tournament-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.tournament-info {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.section-title {
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.subsection-title {
    color: #555;
    margin-bottom: 1rem;
}

/* Categories Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: #495057 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    background-color: transparent;
    margin-right: 0.25rem;
    text-shadow: none;
    font-size: 1rem;
}

.nav-tabs .nav-link:hover {
    color: #667eea !important;
    background-color: #e9ecef;
    border-color: transparent;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    color: #667eea !important;
    background-color: white;
    border-bottom: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 700;
    text-decoration: none;
}

.nav-tabs .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Groups Section */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.group-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.group-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.group-count {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.group-teams {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.team-item:hover {
    background: #e9ecef;
}

.team-avatar {
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.team-name {
    font-weight: 500;
    color: #333;
}

/* Matches Section */
.matches-container {
    margin-top: 1rem;
}

.phase-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.phase-count {
    color: #666;
    font-size: 0.9rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.match-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.match-card:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.match-date {
    font-size: 0.9rem;
    color: #666;
}

.match-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.visibility-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.visibility-badge.public {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
}

.visibility-badge.private {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.team-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.match-footer {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* No content states */
.no-matches, .no-category-selected {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem 2rem;
}

/* Subsection Header */
.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subsection-title {
    margin: 0;
    color: #555;
}

.groups-visibility-info {
    display: flex;
    align-items: center;
}

.matches-visibility-info {
    display: flex;
    align-items: center;
}

.groups-visibility {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.matches-visibility {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Visibility Badges */
.visibility-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.visibility-badge.public {
    background-color: #d4edda;
    color: #155724;
}

.visibility-badge.private {
    background-color: #f8d7da;
    color: #721c24;
}

/* Config Public Indicator in Tabs */
.config-public-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
}

.config-public-indicator i {
    font-size: 0.7rem;
}

/* Match Status Group */
.match-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-preview-view {
        padding: 1rem;
    }
    
    .tournament-header {
        padding: 1.5rem;
    }
    
    .tournament-title {
        font-size: 2rem;
    }
    
    .groups-container {
        grid-template-columns: 1fr;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-vs {
        transform: rotate(90deg);
    }
}

.tournament-detail-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tournament-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.tournament-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.tournament-info {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.section-title {
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.subsection-title {
    color: #555;
    margin-bottom: 1rem;
}

/* Categories Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: #495057 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    background-color: transparent;
    margin-right: 0.25rem;
    text-shadow: none;
    font-size: 1rem;
}

.nav-tabs .nav-link:hover {
    color: #667eea !important;
    background-color: #e9ecef;
    border-color: transparent;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    color: #667eea !important;
    background-color: white;
    border-bottom: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 700;
    text-decoration: none;
}

.nav-tabs .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

/* Groups Section */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.group-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.group-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.group-count {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.group-teams {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.team-item:hover {
    background: #e9ecef;
}

.team-avatar {
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.team-name {
    font-weight: 500;
    color: #333;
}

/* Matches Section */
.matches-container {
    margin-top: 1rem;
}

.phase-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.phase-count {
    color: #666;
    font-size: 0.9rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.match-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.match-card:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.match-date {
    font-size: 0.9rem;
    color: #666;
}

.match-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.visibility-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.visibility-badge.public {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.team-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.match-footer {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* No content states */
.no-public-content, .no-category-selected {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem 2rem;
}

/* Subsection Header */
.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subsection-title {
    margin: 0;
    color: #555;
}

.groups-visibility-info, .matches-visibility-info {
    display: flex;
    align-items: center;
}

.groups-visibility, .matches-visibility {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Config Public Indicator in Tabs */
.config-public-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
}

.config-public-indicator i {
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-detail-view {
        padding: 1rem;
    }
    
    .tournament-header {
        padding: 1.5rem;
    }
    
    .tournament-title {
        font-size: 2rem;
    }
    
    .groups-container {
        grid-template-columns: 1fr;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-vs {
        transform: rotate(90deg);
    }
}

/* Hero Section */
.home-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
  }
  
  .home-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
  }
  
  .home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
  }
  
  .home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .home-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .home-text-gradient {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .home-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
  }
  
  .home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
  }
  
  .home-stat-item {
    text-align: center;
  }
  
  .home-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
  }
  
  .home-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* Navigation */
  .home-navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .home-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .home-navbar .navbar-brand i {
    color: #ffd700;
    margin-right: 0.5rem;
  }
  
  .home-navbar .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .home-navbar .nav-link:hover {
    color: #ffd700 !important;
  }
  
  .home-navbar .nav-link i {
    margin-right: 0.5rem;
  }
  
  /* Main Content */
  .home-main-content {
    background: #f8f9fa;
  }
  
  /* Section Styles */
  .home-matches-section {
    padding: 4rem 0;
  }
  
  .home-section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .home-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  .home-section-title i {
    margin-right: 0.5rem;
  }
  
  .home-section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Matches Grid */
  .home-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Loading */
  .home-loading-container {
    text-align: center;
    padding: 3rem;
  }
  
  /* No Matches */
  .home-no-matches {
    text-align: center;
    padding: 3rem;
  }
  
  .home-no-matches-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
  }
  
  .home-no-matches-content h4 {
    color: #6c757d;
    margin-bottom: 0.5rem;
  }
  
  .home-no-matches-content p {
    color: #adb5bd;
  }
  
  /* Tournaments Section */
  .home-tournaments-section {
    padding: 4rem 0;
  }
  
  .home-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .home-tournament-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .home-tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .home-tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .home-tournament-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.5rem;
  }
  
  .home-tournament-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  .home-tournament-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .home-tournament-meta {
    margin-bottom: 1.5rem;
  }
  
  .home-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  .home-meta-item i {
    color: #667eea;
    width: 16px;
  }
  
  .home-tournament-footer {
    text-align: center;
  }
  
  /* About Section */
  .home-about-section {
    padding: 4rem 0;
    background: white;
  }
  
  .home-about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
  }
  
  .home-about-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 2rem;
  }
  
  .home-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .home-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #2c3e50;
  }
  
  .home-feature-item i {
    font-size: 1.2rem;
  }
  
  .home-about-image {
    text-align: center;
  }
  
  .home-image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 5rem;
  }
  
  /* Footer */
  .home-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
  }
  
  .home-footer h5 {
    color: #ffd700;
    margin-bottom: 1rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .home-hero-title {
      font-size: 2.5rem;
    }
    
    .home-hero-subtitle {
      font-size: 1.2rem;
    }
    
    .home-hero-stats {
      flex-direction: column;
      gap: 1.5rem;
    }
    
    .home-matches-grid {
      grid-template-columns: 1fr;
    }
    
    .home-tournaments-grid {
      grid-template-columns: 1fr;
    }
    
    .home-section-title {
      font-size: 2rem;
    }
    
    .home-about-title {
      font-size: 2rem;
    }
    
    .home-image-placeholder {
      width: 200px;
      height: 200px;
      font-size: 3rem;
    }
  }
  
  /* Utility Classes */
  .home-bg-light {
    background-color: #f8f9fa !important;
  }
  
  .mt-6, .my-6 {
    margin-top: 4rem !important;
  }
  
  .mt-7, .my-7 {
    margin-top: 5rem !important;
  }

  /* Navigation */
.home-navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .home-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .home-navbar .navbar-brand i {
    color: #ffd700;
    margin-right: 0.5rem;
  }
  
  .home-navbar .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .home-navbar .nav-link:hover {
    color: #ffd700 !important;
  }
  
  .home-navbar .nav-link i {
    margin-right: 0.5rem;
  }
  
  /* Main Content */
  .home-main-content {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
  }
  
  /* Footer */
  .home-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
  }
  
  .home-footer h5 {
    color: #ffd700;
    margin-bottom: 1rem;
  }
  
  .home-match-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #dee2e6;
  }
  
  .home-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .home-match-card.home-status-live {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  }
  
  .home-match-card.home-status-completed {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f8fff9 100%);
  }
  
  .home-match-card.home-status-cancelled {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  }
  
  .home-match-card.home-status-pending {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
  }
  
  .home-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .home-tournament-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  .home-tournament-info i {
    color: #ffc107;
  }
  
  .home-match-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
  }
  
  .home-status-live .home-match-status {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
  }
  
  .home-status-completed .home-match-status {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
  }
  
  .home-status-cancelled .home-match-status {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
  }
  
  .home-status-pending .home-match-status {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
  }
  
  .home-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  .home-team {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
  }
  
  .home-away-team {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  .home-team-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    overflow: hidden;
    position: relative;
  }
  
  .home-team-logo .team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .home-team-logo .team-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  
  .home-team-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .home-team-category {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
  }
  
  .home-team-score {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
  }
  
  .home-match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .home-vs-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .home-match-time {
    text-align: center;
    font-size: 0.85rem;
  }
  
  .home-match-time .home-date {
    color: #6c757d;
    font-weight: 500;
  }
  
  .home-match-time .home-time {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
  }
  
  .home-match-phase {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
  }
  
  .home-match-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
  }
  
  .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
  }
  
  .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
  }
  
  @media (max-width: 768px) {
    .home-match-content {
      flex-direction: column;
      gap: 1rem;
    }
    
    .home-team {
      flex-direction: row !important;
      text-align: left !important;
    }
    
    .home-away-team {
      flex-direction: row !important;
    }
    
    .home-match-vs {
      order: -1;
      padding: 0;
    }
  }

 /* list Scorecard */
 .scorecards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .scorecard-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .scorecard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .scorecard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .unique-code .code {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .status-badge .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .scorecard-content {
    padding: 20px;
  }
  
  .match-info {
    margin-bottom: 15px;
  }
  
  .tournament-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .teams {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .team {
    font-weight: 600;
    color: #555;
  }
  
  .vs {
    color: #999;
    font-weight: bold;
  }
  
  .match-details {
    margin-top: 8px;
  }
  
  .scorecard-details {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
  }
  
  .detail-item {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  .scorecard-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .created-info {
    font-size: 0.8rem;
  }
  
  .actions {
    display: flex;
    gap: 5px;
  }
  
  .actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .pagination-container {
    margin-top: 30px;
  }
  
  @media (max-width: 768px) {
    .scorecards-grid {
      grid-template-columns: 1fr;
    }
    
    .scorecard-footer {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }
    
    .actions {
      width: 100%;
      justify-content: flex-end;
    }
  }

  /* Scorecard Form */
  .scorecard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .scorecard-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .scorecard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
  }
  
  .scorecard-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
  }
  
  .scorecard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .scorecard-unique-code h2 {
    margin: 0;
    font-weight: bold;
    letter-spacing: 2px;
  }
  
  .scorecard-match-details-section {
    padding: 30px;
    border-bottom: 2px solid #e9ecef;
  }
  
  .scorecard-section-title {
    background: #333;
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
  }
  
  .scorecard-section-title h3 {
    margin: 0;
    font-weight: bold;
  }
  
  .scorecard-form-group {
    margin-bottom: 15px;
  }
  
  .scorecard-form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
  }
  
  .scorecard-teams-section {
    padding: 30px;
    border-bottom: 2px solid #e9ecef;
  }
  
  .scorecard-team-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .scorecard-team-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
  }
  
  .scorecard-players-table {
    padding: 20px;
  }
  
  .scorecard-players-table table {
    margin-bottom: 0;
  }
  
  .scorecard-players-table th {
    background: #e9ecef;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
  }
  
  .scorecard-players-table td {
    vertical-align: middle;
    padding: 8px;
  }
  
  .scorecard-footer-section {
    padding: 30px;
    background: #f8f9fa;
  }
  
  .scorecard-action-buttons {
    padding: 30px;
    background: white;
    border-top: 1px solid #e9ecef;
  }
  
  .scorecard-btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
  
  @media (max-width: 768px) {
    .scorecard-container {
      padding: 10px;
    }
    
    .scorecard-match-details-section,
    .scorecard-teams-section,
    .scorecard-footer-section,
    .scorecard-action-buttons {
      padding: 20px;
    }
    
    .scorecard-logo {
      font-size: 1rem;
    }
    
    .scorecard-unique-code h2 {
      font-size: 1.5rem;
    }
  }

/* Tournament Logo Styles */
.tournament-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: white;
}

.fallback-icon {
  display: none;
  font-size: 1.5rem;
  color: #2c3e50;
}

.home-tournament-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: white;
}

/* Tournament Detail Logo Styles */
.tournament-detail-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tournament-detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  border: 3px solid #667eea;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Tournament Logo Styles */
@media (max-width: 768px) {
    .tournament-detail-logo {
        width: 60px;
        height: 60px;
    }
    
    .tournament-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .home-tournament-icon {
        width: 50px;
        height: 50px;
    }
    
    .home-tournament-icon img {
        width: 100%;
        height: 100%;
    }
    
    .fallback-icon {
        font-size: 1.2rem;
    }
}

/* Logo hover effects */
.tournament-detail-logo:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.home-tournament-icon img:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Logo loading states */
.tournament-logo {
    transition: opacity 0.3s ease;
}

.tournament-logo[src*="loading"] {
    opacity: 0.7;
}

/* Team Logo Styles */
.team-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
}

.team-logo-small {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.team-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
}

.team-avatar i {
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

/* Team logo hover effects */
.team-logo:hover,
.team-logo-small:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive team logo styles */
@media (max-width: 768px) {
    .team-logo-small {
        width: 25px;
        height: 25px;
    }
    
    .team-avatar i {
        font-size: 1rem;
        width: 25px;
    }
}

/* Team logo loading states */
.team-logo,
.team-logo-small {
    transition: opacity 0.3s ease;
}

.team-logo[src*="loading"],
.team-logo-small[src*="loading"] {
    opacity: 0.7;
}

/* Fallback icon styles */
.team-avatar .fa-shield {
    display: none;
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.team-logo-container .fa-shield {
    display: none;
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

/* Match teams layout adjustments */
.match-teams .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.match-teams .team .team-logo-container {
    margin-bottom: 0.3rem;
}

/* Group teams layout adjustments */
.group-teams .team-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.group-teams .team-item:hover {
    background: #e9ecef;
}

.group-teams .team-avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.group-teams .team-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Additional Team Logo Integration Styles */
.team-avatar img.team-logo {
    transition: all 0.3s ease;
}

.team-avatar img.team-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Match card team logo improvements */
.match-card .team-logo-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.match-card .team-logo-small {
    transition: all 0.3s ease;
}

.match-card .team-logo-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Group card team logo improvements */
.group-card .team-avatar {
    position: relative;
    overflow: hidden;
}

.group-card .team-logo {
    transition: all 0.3s ease;
}

.group-card .team-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Fallback icon positioning */
.team-avatar .fa-shield,
.team-logo-container .fa-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

/* Loading animation for team logos */
.team-logo.loading,
.team-logo-small.loading {
    animation: pulse 1.5s infinite;
}

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

/* Team logo error state */
.team-logo.error,
.team-logo-small.error {
    opacity: 0.3;
}

/* Responsive adjustments for team logos */
@media (max-width: 576px) {
    .team-logo-small {
        width: 20px;
        height: 20px;
    }
    
    .team-avatar i {
        font-size: 0.9rem;
        width: 20px;
    }
    
    .match-teams .team {
        gap: 0.3rem;
    }
    
    .match-teams .team .team-logo-container {
        margin-bottom: 0.2rem;
    }
}

/* Team logo accessibility */
.team-logo,
.team-logo-small {
    cursor: pointer;
}

.team-logo:focus,
.team-logo-small:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Team logo tooltip support */
.team-avatar,
.team-logo-container {
    position: relative;
}

.team-avatar:hover::after,
.team-logo-container:hover::after {
    content: attr(data-team-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.navbar {
    z-index: 1000;
}

