/* assets/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a472a 0%, #0a2a1a 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

header h1 {
    color: #1a472a;
    text-align: center;
    margin-bottom: 15px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #1a472a;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
}

nav a:hover {
    background: #1a472a;
    color: white;
}

nav a.logout {
    background: #dc3545;
    color: white;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a472a;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #1a472a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-container button:hover {
    background: #0e2e1a;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.match-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-teams {
    font-size: 1.2em;
    font-weight: bold;
    color: #1a472a;
    margin-bottom: 10px;
}

.match-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.prediction-info {
    background: #e8f5e9;
    padding: 8px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9em;
}

.btn-predict, .btn-edit {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #1a472a;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-edit {
    background: #ffc107;
    color: #333;
    margin-left: 10px;
}

.btn-predict:hover {
    background: #0e2e1a;
}

.ranking-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ranking-table th, .ranking-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ranking-table th {
    background: #1a472a;
    color: white;
}

.ranking-table tr:hover {
    background: #f5f5f5;
}

.admin-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.admin-section h3 {
    color: #1a472a;
    margin-bottom: 15px;
}

.btn-admin {
    background: #1a472a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.btn-admin:hover {
    background: #0e2e1a;
}

#resultForm {
    margin-top: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

#resultForm input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 120px;
}

select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 300px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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