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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sunglasses {
    font-size: 4em;
    margin: 10px 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.story {
    font-size: 0.9em;
    opacity: 0.95;
    font-style: italic;
    margin-top: 5px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.dashboard-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    padding: 40px 30px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 10px;
    color: #333;
}

.tab-content > p {
    color: #666;
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.status-banner {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.status-banner.disabled {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.status-banner.enabled {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.result-box.show {
    display: block;
}

.result-box.success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.result-box.warning {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

.result-box.error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.result-box h3 {
    margin-bottom: 10px;
}

.result-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-box {
    background: #e7f3ff;
    border: 2px solid #b3d9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #004085;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard-table tr:hover {
    background: #f8f9fa;
}

.leaderboard-table tr.winner-row {
    background: #fff9e6;
}

.winner-badge {
    background: #ffd700;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}