/* Sportbook - Custom Styles */
/* Attendance select custom colors */
.attendance-select option[value="confirmed"] {
    background-color: #d1e7dd;
    color: #198754;
}
.attendance-select option[value="pending"] {
    background-color: #fff3cd;
    color: #856404;
}
.attendance-select option[value="declined"] {
    background-color: #f8d7da;
    color: #842029;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}
.testik{
    color: #98a839;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container max width for large screens */
.container, .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: #667eea;
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0;
}

.login-logo p {
    color: #6c757d;
    margin-top: 5px;
}

.btn-google {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Dashboard Styles */
.dashboard-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 8px 0;
    margin-bottom: 10px;
}

.navbar-brand {
    font-weight: bold;
    color: #667eea !important;
    font-size: 1.5rem;
}

/* Navbar Navigation Items */
.navbar-nav .nav-link {
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: #667eea !important;
}

.navbar-nav .nav-link .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

.navbar-nav.ms-auto {
    align-items: center;
}

/* User Dropdown */
.navbar-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-nav .dropdown-toggle:hover {
    background-color: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 20px;
    border: none;
}

.dashboard-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Event List Styling */
.event-list-item {
    position: relative;
    cursor: pointer;
    padding: 20px;
}

.event-list-item .event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-list-item .event-details {
    font-size: 1.17rem;
    line-height: 1.8;
}

.event-list-item .event-details small {
    font-size: 1.02rem;
}

.event-list-item .event-participants {
    font-size: 1.15rem;
    font-weight: 600;
    color: #667eea;
}

.event-status-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.event-status-btn {
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 8px !important;
    min-width: 120px;
    transition: all 0.3s;
    cursor: pointer;
}

.event-status-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Vyšší specificita pro mobilní zobrazení */
button.btn.event-status-btn.btn-success,
.event-status-btn.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

button.btn.event-status-btn.btn-danger,
.event-status-btn.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

button.btn.event-status-btn.btn-warning,
.event-status-btn.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

button.btn.event-status-btn.btn-outline-secondary,
.event-status-btn.btn-outline-secondary {
    background-color: white !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.event-status-btn.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.icon-teams { background: #e3f2fd; color: #1976d2; }
.icon-events { background: #f3e5f5; color: #7b1fa2; }
.icon-payments { background: #e8f5e9; color: #388e3c; }
.icon-settings { background: #fff3e0; color: #f57c00; }

.dashboard-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.dashboard-card p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.stat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary { background: #e3f2fd; color: #1976d2; }
.badge-success { background: #e8f5e9; color: #388e3c; }
.badge-warning { background: #fff3e0; color: #f57c00; }
.badge-danger { background: #ffebee; color: #c62828; }

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-pointer {
    cursor: pointer;
}

/* Jersey Selector Styles - Zarovnání doprava a fixní šířka */
.jersey-selector {
    display: inline-block !important;
    width: 150px !important; /* Fixní šířka podle delšího nápisu */
    text-align: left !important;
    margin-left: auto !important;
}

.list-group-item .d-flex {
    align-items: center;
}

/* Profile Picture Styles */
.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d6efd;
}

.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border: 3px solid #0d6efd;
}

.profile-picture-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.3s ease;
}

.profile-picture-upload:hover {
    background: #0b5ed7;
    transform: scale(1.1);
}

.profile-picture-upload input[type="file"] {
    display: none;
}
/* Logo and Brand Responsive Styles */
.navbar-logo {
    height: 87px;
    width: 110px;
    flex-shrink: 0;
}

.navbar-brand-text {
    font-size: 120%;
    margin-left: 30px;
    white-space: normal;
    line-height: 1.2;
}

/* Mobile and Tablet Responsive */
@media (max-width: 991px) {
    .navbar-logo {
        height: 60px;
        width: 76px;
    }
    
    .navbar-brand-text {
        font-size: 110%;
        margin-left: 30px;
    }
    
    .dashboard-header {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 48px;
        width: 60px;
    }
    
    .navbar-brand-text {
        font-size: 90%;
        margin-left: 15px;
    }
     .dashboard-header {
        padding: 7px 0;
    }
    .navbar-brand {
        max-width: calc(100% - 63px);
    }
}

/* Player Avatar Styles */
.player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f0f0f0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-avatar:hover {
    transform: scale(1.1);
}

.player-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-avatar-initials {
    font-size: 20px;
    font-weight: bold;
    color: #495057;
    user-select: none;
}

/* Jersey Thumbnail Styles */
.jersey-thumbnail {
    width: 32px;
    height: 32px;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.jersey-thumbnail:hover {
    transform: scale(1.1);
}

/* Jersey Chooser */
.jersey-chooser-container {
    position: relative;
}

.inline-jersey-chooser {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.jersey-chooser-item {
    width: 35px;
    height: 35px;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.jersey-chooser-item:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.jersey-chooser-item.active {
    border-width: 3px;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Status Chooser Container */
.status-chooser-container {
    display: block;
}