/* Základní styly */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Pro login stránku - centrování obsahu */
body:has(.login-card) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-content {
    padding-top: 80px;
}

/* Navigace */
.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Karty */
.match-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leaderboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.match-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bet-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bet-card:hover {
    transform: translateY(-2px);
}

.admin-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Kategorie sázek */
.category-header {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.category-header h5 {
    margin: 0;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

.category-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.bet-type-row {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.bet-type-row:hover {
    transform: translateX(5px);
}

/* Status badges */
.status-live {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.status-upcoming {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.odds-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.user-bet {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* Uživatelské informace */
.user-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Statistiky */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Historie sázek */
.bet-history-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.bet-win {
    border-left-color: #28a745;
}

.bet-loss {
    border-left-color: #dc3545;
}

.bet-pending {
    border-left-color: #ffc107;
}

/* Žebříček */
.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: white;
}

.leaderboard-row {
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.leaderboard-row:hover {
    transform: translateX(5px);
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* Měsíční cena */
.monthly-prize-section {
    position: relative;
    overflow: hidden;
}

.prize-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
}

.prize-container::before {
    content: '';
    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="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
    border-radius: 20px;
}

.prize-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.prize-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.prize-icon {
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    padding: 0;
}

.prize-title h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}

.prize-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.prize-value {
    margin-bottom: 25px;
}

.value-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.prize-actions {
    margin-top: 20px;
}

.btn-prize {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    color: #333;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-prize:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #333;
}

.prize-image-container {
    position: relative;
    z-index: 2;
}

.prize-image {
    max-height: 150px;
    max-width: 150px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Formuláře */
.bet-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

/* Disabled stavy */
.bet-disabled {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}

.bet-disabled-message {
    margin-top: 10px;
}

/* Admin specifické styly */
.quick-action {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action:hover {
    transform: translateY(-5px);
    color: inherit;
    text-decoration: none;
}

.match-row, .bet-row, .user-row, .player-row {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.match-row:hover, .bet-row:hover, .user-row:hover, .player-row:hover {
    transform: translateX(5px);
}

/* Login stránka */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitch-btn {
    background: #9146FF;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.twitch-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(145, 70, 255, 0.3);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .prize-container {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .prize-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .prize-title h3 {
        font-size: 1.5rem;
    }
    
    .prize-image {
        max-height: 120px;
        max-width: 120px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 10px;
    }
    
    .category-header h5 {
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(255, 255, 255, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar pro modaly a dropdowny */
.modal-body::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
} 

/* Karty měsíčních cen */
.prize-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffd700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.prize-card img {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Systémové statistiky */
.system-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.system-info-card h6 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Tabulky v admin panelu */
.admin-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
}

.admin-table .table td {
    border-color: rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Nástroje a tlačítka */
.tools-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.tool-button.danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.tool-button.danger:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.tool-button.success {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.tool-button.success:hover {
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.tool-button.warning {
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
}

.tool-button.warning:hover {
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

/* Backup sekce */
.backup-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.backup-info h6 {
    color: white;
    font-weight: bold;
}

.backup-info ul {
    color: rgba(255, 255, 255, 0.9);
}

.backup-info li {
    margin-bottom: 5px;
}

/* Responsive design pro admin panel */
@media (max-width: 768px) {
    .quick-action {
        margin-bottom: 15px;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .tool-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .prize-card {
        padding: 15px;
    }
    
    .prize-card img {
        max-width: 100%;
        height: auto;
    }
}

/* Animace pro karty */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-card, .prize-card, .system-info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover efekty pro tabulky */
.admin-table .table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transition: background-color 0.2s ease;
}

/* Badge styly pro statistiky */
.stat-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.stat-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-badge .stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}

.stat-badge .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge.bg-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.stat-badge.bg-success {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.stat-badge.bg-warning {
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
}

.stat-badge.bg-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.stat-badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
}

.stat-badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
} 

.prize-container .list-group-item {
    background: none;
    color: white;
    border: none;
} 

.side-prize-card {
    background: linear-gradient(135deg, #6c7eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    padding: 8px 12px;
    margin-bottom: 0;
    align-items: center;
    min-height: 38px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    gap: 8px;
}
.side-prize-card:hover {
    box-shadow: 0 8px 28px rgba(102,126,234,0.18);
    transform: translateY(-2px) scale(1.02);
}
.side-prize-silver {
    background: linear-gradient(135deg, #b0bec5 0%, #eceff1 100%);
    color: #333;
}
.side-prize-bronze {
    background: linear-gradient(135deg, #ffccbc 0%, #fbe9e7 100%);
    color: #333;
}
.side-prize-rank {
    font-size: 1.05rem;
    font-weight: bold;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.side-prize-title {
    font-size: 0.98rem;
    font-weight: 600;
}
.side-prize-value {
    margin-left: 6px;
    font-size: 0.93rem;
    padding: 4px 10px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    border-radius: 12px;
}
.side-prize-desc {
    font-size: 0.90rem;
    margin-bottom: 1px;
}
.side-prize-silver .side-prize-value,
.side-prize-bronze .side-prize-value {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}
@media (max-width: 768px) {
    .side-prize-card {
        padding: 6px 6px;
        min-height: 30px;
    }
    .side-prize-rank {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
} 

.side-prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    width: 100%;
}
@media (max-width: 600px) {
    .side-prize-grid {
        grid-template-columns: 1fr;
    }
} 