/* === EA FC Liga Manager - Vollständiges Stylesheet === */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* === Login Screen === */
.screen { display: none; }
.screen.active { display: block; }

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #0a0e1a 100%);
}

.login-container h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 150, 255, 0.5);
}

.login-container h2 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

.login-box {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 16px;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 320px;
}

.login-box label {
    font-size: 1rem;
    color: #aaa;
}

.login-box select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2a3050;
    background: #0d1020;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

#login-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #034694, #0066cc);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#login-btn:hover {
    background: linear-gradient(135deg, #0066cc, #0088ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* === Navigation === */
#main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    background: #111530;
    border-bottom: 2px solid #1e2445;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-team {
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-center {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid #2a3050;
    border-radius: 8px;
    background: transparent;
    color: #aaa;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nav-btn:hover, .nav-btn.active {
    background: #1e2445;
    color: #fff;
    border-color: #3a4570;
}

.nav-btn-small {
    padding: 6px 12px;
    border: 1px solid #2a3050;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn-small:hover {
    background: #1e2445;
    color: #fff;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef0107;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* === Pages === */
.page { display: none; padding: 1.5rem; }
.page.active { display: block; }

/* === Dashboard === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.widget {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 12px;
    padding: 1.2rem;
}

.widget h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a3050;
}

/* === Tabelle === */
.league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.league-table th {
    background: #1a1f3a;
    padding: 6px 8px;
    text-align: left;
    color: #888;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.league-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #1a1f3a;
}

.league-table tr:hover {
    background: #1a1f3a;
}

.league-table tr.highlight-chelsea {
    background: rgba(3, 70, 148, 0.2);
    font-weight: bold;
}

.league-table tr.highlight-arsenal {
    background: rgba(239, 1, 7, 0.2);
    font-weight: bold;
}

/* === Kader === */
.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    max-width: 1000px;
    margin: 0 auto;
}

.squad-table th {
    background: #1a1f3a;
    padding: 10px 12px;
    text-align: left;
    color: #888;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.squad-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1f3a;
}

.squad-table tr:hover {
    background: #1a1f3a;
}

/* === Transfers === */
.transfer-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2a3050;
}

.transfer-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.transfer-tab:hover {
    color: #ccc;
}

.transfer-tab.active {
    color: #fff;
    border-bottom-color: #0066cc;
}

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

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input, .search-bar select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #2a3050;
    background: #0d1020;
    color: #fff;
    font-size: 0.95rem;
}

.search-bar input {
    flex: 1;
}

.transfer-card {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.transfer-card:hover {
    border-color: #3a4570;
    transform: translateX(4px);
}

.transfer-card .player-info {
    flex: 1;
}

.transfer-card .player-name {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.transfer-card .player-details {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}

.transfer-card .player-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4caf50;
    margin-right: 1rem;
}

/* === Buttons === */
.btn-buy {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    transform: translateY(-1px);
}

.btn-sell {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sell:hover {
    background: linear-gradient(135deg, #d32f2f, #ef5350);
}

.btn-offer {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.btn-accept {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.btn-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reject:hover {
    background: linear-gradient(135deg, #d32f2f, #ef5350);
}

.btn-bid {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #e65100, #f57c00);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-bid:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800);
}

.btn-end-bidding {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-end-bidding:hover {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
}

/* === Angebote & Gebote === */
.offer-section {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.offer-section h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a3050;
}

.offer-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.offer-form select, .offer-form input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #2a3050;
    background: #0d1020;
    color: #fff;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.offer-amount-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
}

.offer-amount-row label {
    font-size: 0.85rem;
    color: #888;
}

.offer-card {
    background: #0d1020;
    border: 1px solid #2a3050;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.offer-card:hover {
    border-color: #3a4570;
}

.offer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.offer-card-header .offer-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.offer-type-direct {
    background: rgba(0, 102, 204, 0.2);
    color: #4da6ff;
}

.offer-type-bidding {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.offer-card-player {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.offer-card-details {
    color: #888;
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.offer-card-amount {
    font-size: 1.15rem;
    font-weight: bold;
    color: #4caf50;
    margin: 0.5rem 0;
}

.offer-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.bid-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #2a3050;
    background: #151929;
    color: #fff;
    font-size: 0.9rem;
    width: 160px;
}

.bid-history {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #1a1f3a;
}

.bid-history h4 {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.4rem;
}

.bid-entry {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 3px 0;
    color: #aaa;
}

.bid-entry.highest {
    color: #4caf50;
    font-weight: bold;
}

/* === Spieltag === */
.matchday-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.btn-advance {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #034694, #0066cc);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-advance:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
}

.btn-advance.result-btn {
    background: linear-gradient(135deg, #e65100, #f57c00);
}

.result-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.result-input {
    width: 50px;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #2a3050;
    background: #0d1020;
    color: #fff;
}

.match-result-card {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.match-result-card .home-team { text-align: right; flex: 1; }
.match-result-card .away-team { text-align: left; flex: 1; }
.match-result-card .score {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0 1rem;
    color: #fff;
    min-width: 60px;
    text-align: center;
}

/* === Transfer Window Status === */
.transfer-window-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.transfer-window-closed {
    background: rgba(239, 1, 7, 0.2);
    color: #ef0107;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* === Sonstige === */
.empty-message {
    color: #555;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.status-message {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.status-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .nav-center {
        flex-wrap: wrap;
    }
    #main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-bar {
        flex-direction: column;
    }
    .offer-form {
        flex-direction: column;
    }
}

/* === Saison-Ende Modal === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-content {
    background: #151929;
    border: 1px solid #2a3050;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-new-season {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #034694, #0066cc);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}
