/* Eishockey Tippspiel - Basic Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

/* Header & Navigation */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4CAF50;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

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

.btn-danger:hover {
    background-color: #da190b;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

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

.table tr:hover {
    background-color: #f9f9f9;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.admin-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.admin-card p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Admin Content */
.admin-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Dashboard */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.dashboard ul {
    margin-left: 20px;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    margin: 20px 0;
    justify-content: center;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }

    .form-container {
        padding: 20px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Styles */
.dashboard-hero {
    margin-bottom: 40px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fade 1s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #4CAF50;
}

.welcome-banner {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.welcome-banner h1 {
    margin-bottom: 10px;
    font-size: 28px;
}

.welcome-banner p {
    font-size: 16px;
    opacity: 0.95;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-card h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* Matches List */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-item,
.match-result {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.match-item:hover {
    background-color: #f0f0f0;
}

.match-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-weight: 500;
}

.vs,
.score {
    color: #4CAF50;
    font-weight: bold;
    padding: 0 5px;
}

.score {
    font-size: 18px;
}

.match-league {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.match-time {
    font-size: 12px;
    color: #4CAF50;
    margin-bottom: 8px;
}

/* Leagues Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.league-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.league-badge:hover {
    transform: scale(1.05);
}

.league-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.league-season {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-box {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

/* Button Sizes */
.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    margin-top: 8px;
    width: 100%;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .slideshow-container {
        height: 250px;
    }

    .welcome-banner {
        padding: 20px;
    }

    .welcome-banner h1 {
        font-size: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .leagues-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
