* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    background-image: url('./media/Vlag_DonkereAchtergrond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.container {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(81, 111, 234, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(81, 111, 234, 0.3);
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    /* background-image: url('./media/logo_lebon_full_voordonkereachtergrond.png');
    */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
    text-shadow: 0 2px 10px rgba(81, 111, 234, 0.5);
}

.subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.required {
    color: #9898ff;
    font-weight: bold;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(81, 111, 234, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #9898ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(81, 111, 234, 0.3);
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #9898ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(81, 111, 234, 0.6);
    background: #6580ff;
}

button[type="submit"]:active {
    transform: translateY(0);
}

.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.success-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gm-link {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.gm-link:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.back-link {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.back-link:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}
.leaderboard-link {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.leaderboard-link:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.back-link {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.back-link:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}
/* Game Master Page Styles */
.gm-container {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(81, 111, 234, 0.3);
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(81, 111, 234, 0.3);
    position: relative;
    z-index: 1;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(81, 111, 234, 0.3);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.gm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.gm-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #9898ff;
    color: white;
}

.btn-primary:hover {
    background: #6580ff;
}

.btn-secondary {
    background: #333333;
    color: white;
    border: 1px solid rgba(81, 111, 234, 0.3);
}

.btn-secondary:hover {
    background: #444444;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 111, 234, 0.4);
}

.challengers-grid {
    display: grid;
    gap: 20px;
}

.challenger-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(81, 111, 234, 0.3);
    transition: all 0.3s;
}

.challenger-card:hover {
    border-color: #9898ff;
    box-shadow: 0 5px 15px rgba(81, 111, 234, 0.3);
}

.challenger-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(81, 111, 234, 0.3);
}

.challenger-info {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.challenger-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-group {
    display: flex;
    flex-direction: column;
}

.action-group label {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 5px;
}

.action-group input,
.action-group textarea {
    padding: 8px;
    border: 1px solid rgba(81, 111, 234, 0.3);
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.action-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-save {
    background: #4caf50;
    color: white;
    padding: 8px 15px;
    margin-top: 10px;
}

.btn-delete {
    background: #f44336;
    color: white;
    padding: 8px 15px;
    margin-top: 10px;
}

.no-challengers {
    text-align: center;
    color: #999999;
    padding: 40px;
    font-size: 18px;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.info-message {
    background: rgba(81, 111, 234, 0.2);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 20px;
    border: 1px solid rgba(81, 111, 234, 0.5);
    line-height: 1.6;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(81, 111, 234, 0.5);
    border: 1px solid rgba(81, 111, 234, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(81, 111, 234, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.modal-content input[type="password"]:focus {
    outline: none;
    border-color: #9898ff;
    box-shadow: 0 0 20px rgba(81, 111, 234, 0.3);
}

.info-section,
.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(81, 111, 234, 0.3);
}

.info-section:last-of-type,
.settings-section:last-of-type {
    border-bottom: none;
}

.info-section h3,
.settings-section h3 {
    color: #9898ff;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-section p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-detail {
    color: #999999;
    font-size: 14px;
}

.checkbox-container {
    margin-top: 15px;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container span {
    color: #ffffff;
    font-weight: 500;
}

.setting-description {
    color: #999999;
    font-size: 13px;
    margin-top: 8px;
    margin-left: 28px;
    line-height: 1.5;
}

.danger-zone {
    background: #fff5f5;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ffebee !important;
}

.danger-zone h3 {
    color: #f44336 !important;
}

.danger-zone label {
    color: black;
}

.btn-danger {
    background: #f44336;
    color: white;
    width: 100%;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Leaderboard Styles */
.leaderboard-container {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(81, 111, 234, 0.3);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    border: 1px solid rgba(81, 111, 234, 0.3);
    position: relative;
    z-index: 1;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(81, 111, 234, 0.3);
    transition: all 0.3s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffc107;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.rank-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-color: #9e9e9e;
    box-shadow: 0 5px 20px rgba(192, 192, 192, 0.3);
}

.rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e9a565 100%);
    border-color: #b8732a;
    box-shadow: 0 5px 20px rgba(205, 127, 50, 0.3);
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin-right: 20px;
}

.medal {
    font-size: 36px;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #9898ff;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.rank-gold .player-name,
.rank-silver .player-name,
.rank-bronze .player-name {
    font-size: 22px;
}

.rank-gold .player-name {
    color: #000000;
}

.rank-silver .player-name {
    color: #000000;
}

.rank-bronze .player-name {
    color: #000000;
}

.rank-title {
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-gold .rank-title {
    color: #b8860b;
}

.rank-silver .rank-title {
    color: #696969;
}

.rank-bronze .rank-title {
    color: #8b4513;
}

.player-score {
    text-align: right;
    margin-left: 20px;
}

.score-value {
    font-size: 28px;
    font-weight: bold;
    color: #9898ff;
    line-height: 1;
}

.rank-gold .score-value {
    color: #b8860b;
}

.rank-silver .score-value {
    color: #696969;
}

.rank-bronze .score-value {
    color: #8b4513;
}

.score-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .container,
    .gm-container,
    .leaderboard-container {
        padding: 20px;
    }
    
    .challenger-header {
        grid-template-columns: 1fr;
    }
    
    .challenger-actions {
        grid-template-columns: 1fr;
    }
    
    .gm-header {
        flex-direction: column;
    }
    
    .gm-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .leaderboard-item {
        padding: 15px;
    }
    
    .rank-badge {
        min-width: 50px;
        margin-right: 15px;
    }
    
    .medal {
        font-size: 28px;
    }
    
    .rank-number {
        font-size: 20px;
    }
    
    .player-name {
        font-size: 18px;
    }
    
    .rank-gold .player-name,
    .rank-silver .player-name,
    .rank-bronze .player-name {
        font-size: 20px;
    }
    
    .score-value {
        font-size: 24px;
    }
}
