* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    min-height: 100vh;
    color: #1f2937;
}

.page {
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #0f172a;
}

.hero p {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.training-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.training-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.training-top h2 {
    color: #0f172a;
    margin-bottom: 8px;
}

.training-meta {
    color: #475569;
    font-size: 16px;
    margin-bottom: 6px;
}

.training-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.register-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.register-btn {
    border: none;
    background: #2563eb;
    color: white;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.register-btn:hover {
    background: #1d4ed8;
}

.closed-box,
.empty-training-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 20px;
    color: #475569;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    margin-top: 16px;
}

.lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.list-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #0f172a;
    font-size: 22px;
}

.player-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
}

.player-status {
    font-size: 13px;
    font-weight: bold;
}

.active-status {
    color: #15803d;
}

.wait-status {
    color: #c2410c;
}

.player-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cancel-btn {
    background: #ef4444;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    transition: 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn:hover {
    background: #dc2626;
}

.plus-one-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.plus-one-btn:hover {
    background: #16a34a;
}

.empty-text {
    color: #64748b;
    font-size: 15px;
    padding: 10px 0;
}

.login-card {
    max-width: 500px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.login-card h1 {
    color: #0f172a;
    margin-bottom: 12px;
}

.login-text {
    color: #64748b;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.login-form input {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    outline: none;
}

.login-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-form button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background: #1d4ed8;
}

.error-box {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
}

.message-card {
    max-width: 700px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.message-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.message-card h1 {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 14px;
}

.message-text {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 28px;
}

.message-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.action-btn {
    text-decoration: none;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.blue-btn {
    background: #2563eb;
}

.blue-btn:hover {
    background: #1d4ed8;
}

.red-btn {
    background: #ef4444;
}

.red-btn:hover {
    background: #dc2626;
}

.dark-btn {
    background: #0f172a;
}

.dark-btn:hover {
    background: #1e293b;
}

.admin-link {
    display: inline-block;
    margin-top: 14px;
    text-decoration: none;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    transition: 0.2s;
}

.admin-link:hover {
    background: #1e293b;
}

.admin-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-form input {
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
}

.admin-form button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    cursor: pointer;
}

.admin-form button:hover {
    background: #1d4ed8;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-header-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.install-btn {
    margin-top: 16px;
    border: none;
    background: #22c55e;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.install-btn:hover {
    background: #16a34a;
}

input[type="datetime-local"] {
    color: #0f172a;
}

@media (max-width: 900px) {
    .lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 28px;
    }

    .player-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cancel-btn,
    .register-btn,
    .plus-one-btn,
    .install-btn {
        width: 100%;
        text-align: center;
    }
}