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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.team-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #667eea;
}

.progress {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.task-content {
    margin-bottom: 25px;
}

.task-content h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.task-content h2 {
    color: #444;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.task-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.task-content strong {
    color: #667eea;
}

.welcome h1 {
    text-align: center;
    font-size: 1.8rem;
}

.code-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .code-form {
        flex-direction: row;
    }
}

.code-input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

@media (min-width: 480px) {
    .submit-btn {
        width: auto;
    }
}

.submit-btn:hover {
    background: #5a6fd6;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Admin page styles */
.admin {
    max-width: 800px;
}

.admin h1 {
    color: #333;
    margin-bottom: 10px;
}

.admin h2 {
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

.admin .warning {
    background: #fee;
    color: #c00;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: bold;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.admin-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.admin ul {
    list-style: none;
}

.admin li {
    margin-bottom: 8px;
}

.admin a {
    color: #667eea;
}

.start-btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.start-btn:hover {
    background: #5a6fd6;
}
