/* Základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigace */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.navbar-nav a.active {
    background: #667eea;
    color: white;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.navbar-nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav a:hover {
    background: #667eea;
    color: white;
}

/* Karty */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* Formuláře */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Upozornění */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Profil hráče */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Otázková banka */
.question-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.answer-option {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    background: #e9ecef;
}

.answer-option.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.answer-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Bodový systém */
.points-card {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.points-amount {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.payment-method {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
}

/* Administrace */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

/* Admin taby */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.tab-button:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tabulky */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Responsivní design */
@media (max-width: 768px) {
    html {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 80px 0 10px 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .navbar {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100000;
        background: #667eea;
        border-radius: 0;
        margin: 0;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100% !important;
        background: white;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 99999;
        flex-direction: column;
        gap: 0;
        margin: 0 !important;
        max-height: 80vh;
        overflow-y: auto;
        border: 1px solid #e9ecef;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        font-size: 16px;
        text-align: left;
        margin: 0;
        border: none;
    }
    
    .navbar-nav a:hover {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .navbar-nav a.active {
        background: #667eea;
        color: white;
    }
    
    /* Hamburger menu */
    .navbar-toggle {
        display: flex !important;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        color: #333;
        border-radius: 5px;
        transition: all 0.3s ease;
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        z-index: 100001;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-toggle:hover {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px;
    }

    .card {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 20px 15px !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }
}

/* Hamburger menu pro mobilní zařízení */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Skryjeme hamburger na větších obrazovkách */
@media (min-width: 769px) {
    .navbar-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .navbar-nav {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        max-height: none;
        overflow: visible;
    }
}

/* Animace */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* QR kód */
.qr-code {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin: 20px 0;
}

.qr-code img {
    max-width: 200px;
    height: auto;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SILNÉ PRAVIDLO PRO HAMBURGER - PŘEPÍŠE VŠECHNO */
.navbar-toggle,
.navbar-toggle:active,
.navbar-toggle:focus,
.navbar-toggle:hover,
.navbar-toggle:visited,
.navbar-toggle:link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 40px !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100001 !important;
    position: relative !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Přepíšeme i media queries */
@media (max-width: 768px) {
    .navbar-toggle,
    .navbar-toggle:active,
    .navbar-toggle:focus,
    .navbar-toggle:hover,
    .navbar-toggle:visited,
    .navbar-toggle:link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
    }
}

@media (min-width: 769px) {
    .navbar-toggle,
    .navbar-toggle:active,
    .navbar-toggle:focus,
    .navbar-toggle:hover,
    .navbar-toggle:visited,
    .navbar-toggle:link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
} 