/* Bootstrap Color Scheme */
:root {
  /* Base colors */
  --bs-primary: #38bdf8;
  --bs-secondary: #1e3a8a;
  --bs-success: #22d3ee;
  --bs-info: #0ea5e9;
  --bs-warning: #facc15;
  --bs-danger: #ef4444;
  --bs-light: #f1f5f9;
  --bs-dark: #0f172a;
  
  /* RGB versions for rgba() usage */
  --bs-primary-rgb: 56, 189, 248;
  --bs-secondary-rgb: 30, 58, 138;
  --bs-success-rgb: 34, 211, 238;
  --bs-info-rgb: 14, 165, 233;
  --bs-warning-rgb: 250, 204, 21;
  --bs-danger-rgb: 239, 68, 68;
  --bs-light-rgb: 241, 245, 249;
  --bs-dark-rgb: 15, 23, 42;
  
  /* Additional Bootstrap variables */
  --bs-primary-text-emphasis: #0a58ca;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;
  
  --bs-primary-bg-subtle: #cfe2ff;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: #fcfcfd;
  --bs-dark-bg-subtle: #ced4da;
  
  --bs-primary-border-subtle: #9ec5fe;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: #e9ecef;
  --bs-dark-border-subtle: #adb5bd;
}

/* Bootstrap Component Overrides */
/* Buttons */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5c636a;
  --bs-btn-hover-border-color: #565e64;
  --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #565e64;
  --bs-btn-active-border-color: #51585e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-secondary);
  --bs-btn-disabled-border-color: var(--bs-secondary);
}

/* Background colors */
.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.bg-info {
  background-color: var(--bs-info) !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
}

.bg-light {
  background-color: var(--bs-light) !important;
}

.bg-dark {
  background-color: var(--bs-dark) !important;
}

/* Text colors */
.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-info {
  color: var(--bs-info) !important;
}

.text-warning {
  color: var(--bs-warning) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.text-light {
  color: var(--bs-light) !important;
}

.text-dark {
  color: var(--bs-dark) !important;
}

/* Navbar */
.navbar-dark {
  --bs-navbar-color: rgba(255, 255, 255, 0.55);
  --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
  --bs-card-border-color: rgba(var(--bs-dark-rgb), 0.125);
}

/* Alerts */
.alert-primary {
  --bs-alert-color: var(--bs-primary-text-emphasis);
  --bs-alert-bg: var(--bs-primary-bg-subtle);
  --bs-alert-border-color: var(--bs-primary-border-subtle);
}

.alert-secondary {
  --bs-alert-color: var(--bs-secondary-text-emphasis);
  --bs-alert-bg: var(--bs-secondary-bg-subtle);
  --bs-alert-border-color: var(--bs-secondary-border-subtle);
}

.alert-success {
  --bs-alert-color: var(--bs-success-text-emphasis);
  --bs-alert-bg: var(--bs-success-bg-subtle);
  --bs-alert-border-color: var(--bs-success-border-subtle);
}

.alert-danger {
  --bs-alert-color: var(--bs-danger-text-emphasis);
  --bs-alert-bg: var(--bs-danger-bg-subtle);
  --bs-alert-border-color: var(--bs-danger-border-subtle);
}

/* Common Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make main content grow to fill available space */
main.container {
    flex: 1 0 auto; /* flex-grow: 1, flex-shrink: 0, flex-basis: auto */
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: #ffffff;
    background-image: url('../img/logo_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 249, 250, 0.75) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: #0f172a !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.hero-section p {
    color: #334155 !important;
}

.hero-section .text-white-50 {
    color: #64748b !important;
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    height: 100%;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

/* Dashboard Styles */
.dashboard-header {
    background-color: var(--bs-light);
    background-image: url('../img/logo_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.dashboard-header .container {
    position: relative;
    z-index: 1;
}

/* Admin Dashboard */
.stat-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.quick-action {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bs-light);
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.quick-action:hover {
    background-color: #e2e8f0;
}

/* Player Dashboard */
.feature-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.profile-section {
    background-color: var(--bs-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

/* Login and Register Pages */
.login-container, .register-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
}

.register-container {
    max-width: 550px;
}

.login-header, .register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon, .register-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

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

.login-page, .register-page {
    background-color: var(--bs-light);
    min-height: calc(100vh - 56px);
    padding: 3rem 0;
}

.password-requirements {
    font-size: 0.8rem;
    color: #6c757d;
}

/* User Management */
.page-header {
    background-color: var(--bs-light);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.user-table th, .user-table td {
    vertical-align: middle;
}

.status-badge {
    width: 80px;
}

.role-badge {
    width: 80px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.user-info-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

/* Event Details Styles */
.section-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.section-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.75rem 0.75rem 0 0;
}

.section-content {
    padding: 1.5rem;
}

/* Seating Styles */
.seating-table {
    display: inline-block;
    margin: 1rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.seating-row {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    min-width: fit-content;
}

.seating-seat {
    width: 80px;
    height: 80px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

/* Mobile responsive seating */
@media (max-width: 768px) {
    .seating-table {
        margin: 0.5rem;
        padding: 0.75rem;
        max-width: 100vw;
        overflow-x: auto;
    }
    
    .seating-seat {
        width: 70px;
        height: 70px;
        margin: 3px;
        font-size: 0.75rem;
    }
    
    .seat-number {
        font-size: 0.65rem;
        top: 3px;
        right: 6px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .seating-table {
        margin: 0.25rem;
        padding: 0.5rem;
    }
    
    .seating-seat {
        width: 60px;
        height: 60px;
        margin: 2px;
        font-size: 0.7rem;
    }
    
    .seat-number {
        font-size: 0.6rem;
        top: 2px;
        right: 4px;
        padding: 1px 3px;
    }
}

.seating-seat.occupied {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.seating-seat.empty {
    background: #e9ecef;
    color: #6c757d;
    border: 2px dashed #adb5bd;
}

.seat-number {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Bracket Styles */
.bracket-container {
    overflow-x: auto;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    margin: 1rem 0;
}

.bracket-round {
    display: inline-block;
    vertical-align: top;
    margin-right: 2.5rem;
    min-width: 220px;
    position: relative;
}

.bracket-round::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #6c757d;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0.3;
}

.bracket-round:last-child::after {
    display: none;
}

.bracket-round h4 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.bracket-match {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bracket-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.bracket-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bracket-match:hover::before {
    opacity: 1;
}

.match-player {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: 500;
    background: transparent;
}

.match-player:last-child {
    border-bottom: none;
}

.match-player:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding-left: 1.5rem;
}

.match-player.winner {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #2e7d32;
    font-weight: 700;
    border-left: 4px solid #4caf50;
    padding-left: 1.75rem;
}

.match-player.winner::before {
    content: '👑';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    animation: bounce 2s infinite;
}

.match-player.bye {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57c00;
    font-style: italic;
    border-left: 4px solid #ff9800;
    padding-left: 1.75rem;
}

.match-player.bye::before {
    content: '⚡';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.match-status {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.8);
}

.match-player.winner .match-status {
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

/* Team Styles */
.team-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-card {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.team1 {
    border-left: 6px solid #198754;
}

.team1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
}

.team1 h5 {
    color: #198754;
}

.team2 {
    border-left: 6px solid #dc3545;
}

.team2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
}

.team2 h5 {
    color: #dc3545;
}

.team-player {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-player:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #0d6efd;
    transform: translateX(5px);
}

.team1 .team-player:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #198754;
}

.team2 .team-player:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #dc3545;
}

.matchup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.matchup-grid .bracket-match {
    margin-bottom: 0;
}

.matchup-grid .bracket-match .text-center {
    background-color: #6c757d;
    color: white;
    font-weight: 600;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    height: 0.5rem;
    margin: 1rem 0;
}

.progress-bar {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Reset Button Styles */
.reset-btn {
    border-color: #ffc107;
    color: #ffc107;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
}

/* Results Display Styles */
.results-team {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.results-team.winner {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.team-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.team-header.winner {
    border-bottom-color: #ffc107;
}

.team-record {
    margin-top: 0.5rem;
}

.team-players {
    text-align: left;
}

.player-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.player-result:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 600;
}

/* Individual Results Styles */
.standings-list {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.standing-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.standing-item:last-child {
    border-bottom: none;
}

.standing-item:hover {
    background-color: #f8f9fa;
}

.standing-item.first-place {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-left: 4px solid #ffc107;
}

.standing-rank {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    min-width: 3rem;
}

.rank-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: #495057;
}

.standing-item.first-place .rank-number {
    color: #ffc107;
}

.standing-player {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    display: block;
    margin-bottom: 0.25rem;
}

.player-record {
    font-size: 0.9rem;
}

.wins {
    color: #198754;
    font-weight: 600;
}

.losses {
    color: #dc3545;
}

/* Winner Spotlight */
.winner-spotlight {
    position: sticky;
    top: 2rem;
}

.winner-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #ffc107;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(255, 193, 7, 0.15);
}

.winner-trophy {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.winner-title {
    color: #ffc107;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.winner-name {
    color: #212529;
    font-weight: bold;
    margin-bottom: 1rem;
}

.winner-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.winner-stats .stat-item {
    text-align: center;
}

.winner-stats .stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.winner-stats .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.winner-cube {
    padding-top: 1rem;
    border-top: 1px solid #ffc107;
}

/* Completed Event Cards */
.completed-event-card {
    border-left: 4px solid #198754;
    transition: all 0.3s ease;
}

.completed-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.completed-event-card .badge {
    font-size: 0.7rem;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border-color: #ff8f00;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.reset-btn:active {
    transform: translateY(0);
}

/* ====================================
   UNIFIED COMPONENT SYSTEM
   ==================================== */

/* Card System - Unified card styling across all pages */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-header {
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Collapsible Card Components */
.card-header[data-bs-toggle="collapse"] {
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
}

.card-header[data-bs-toggle="collapse"]:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.card-header[data-bs-toggle="collapse"]:active {
    transform: translateY(0);
}

.card-header .fas.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.card-header[aria-expanded="false"] .fas.fa-chevron-down {
    transform: rotate(-90deg);
}

/* Feature Cards - Interactive cards with hover effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--bs-primary);
}

/* Event Cards - Specialized cards for event displays */
.event-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.event-card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.event-card-body {
    padding: 1rem 1.25rem;
}

.event-type {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.event-detail {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 500;
    color: var(--bs-secondary);
    margin-right: 0.5rem;
}

.detail-value {
    color: var(--bs-dark);
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Wizard Components - Multi-step process indicators */
.wizard-container {
    margin-bottom: 2rem;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.wizard-step {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.wizard-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
    font-size: 0.875rem;
}

.wizard-step-text {
    font-size: 0.85rem;
    color: #6c757d;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wizard-step.active .wizard-step-icon {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: scale(1.1);
}

.wizard-step.active .wizard-step-text {
    color: var(--bs-primary);
    font-weight: 700;
}

.wizard-step.completed .wizard-step-icon {
    background-color: var(--bs-success);
    color: white;
    border-color: var(--bs-success);
}

.wizard-step.completed .wizard-step-text {
    color: var(--bs-success);
    font-weight: 600;
}

/* Wizard connecting lines */
.wizard-step::before {
    content: '';
    position: absolute;
    height: 3px;
    background-color: #e9ecef;
    z-index: 0;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.wizard-step:first-child::before {
    display: none;
}

.wizard-step.active::before,
.wizard-step.completed::before {
    background-color: var(--bs-primary);
}

.wizard-step-content {
    transition: all 0.3s ease;
}

/* Stat Cards - Dashboard statistics display */
.stat-card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem 0.5rem 0 0 !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .wizard-step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .wizard-step-text {
        font-size: 0.75rem;
    }
    
    .wizard-steps {
        padding: 0 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .event-card-header,
    .event-card-body {
        padding: 0.875rem 1rem;
    }
    
    .event-card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .event-actions {
        align-self: flex-end;
        justify-content: flex-end;
    }
    
    .event-actions .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        width: auto;
    }
}

@media (max-width: 576px) {
    .wizard-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-step::before {
        display: none;
    }
    
    .wizard-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        width: 100%;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: background-color 0.3s ease;
    }
    
    .wizard-step.active {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
    }
    
    .wizard-step-icon {
        margin: 0;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .wizard-step-text {
        margin: 0;
        flex: 1;
    }
    
    .card-header h2,
    .card-header h5 {
        font-size: 1rem;
    }
    
    .event-card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .event-type {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .event-actions .btn {
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-height: 44px;
        max-width: 120px;
    }
    
    .event-actions .btn i {
        margin-right: 0.5rem;
    }
    
    /* Completed event card mobile styles */
    .completed-event-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .completed-event-card .btn-sm {
        width: auto;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        max-width: 120px;
    }
}

/* Enhanced Focus States for Accessibility */
.card-header[data-bs-toggle="collapse"]:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.feature-card:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

/* Winner Deck Photo Upload Styles */
.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-area.dragover {
    border-color: var(--bs-success) !important;
    background-color: rgba(var(--bs-success-rgb), 0.1);
}

#winner-deck-photo {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#winner-deck-photo:hover {
    border-color: var(--bs-primary);
    transform: scale(1.02);
}

/* Mobile-specific photo upload styles */
@media (max-width: 768px) {
    .upload-area {
        min-height: 100px;
        padding: 1.5rem 1rem !important;
    }
    
    .upload-area i.fa-2x {
        font-size: 1.5rem !important;
    }
    
    #winner-deck-photo {
        max-height: 250px !important;
    }
    
    .card-body h6 {
        font-size: 1rem;
    }
    
    #photo-info {
        font-size: 0.8rem;
    }
    
    .btn.btn-success {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .upload-area {
        padding: 1rem 0.75rem !important;
        min-height: 80px;
    }
    
    .upload-area p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .upload-area .small {
        font-size: 0.75rem !important;
    }
    
    #winner-deck-photo {
        max-height: 200px !important;
    }
}

/* Print Styles */
@media print {
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card-header[data-bs-toggle="collapse"]:hover {
        background-color: transparent;
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Hide photo upload section in print */
    #photo-upload-form {
        display: none;
    }
}

