/* ===== RESET =====*/
* { box-sizing: border-box; }

/* ===== DASHBOARD MATCH ===== */
.lmm-match-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.lmm-match-dashboard h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.lmm-teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.lmm-team {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid;
}

.lmm-team.blue-team {
    background: #e3f2fd;
    border-color: #1e88e5;
}

.lmm-team.red-team {
    background: #ffebee;
    border-color: #d32f2f;
}

.lmm-team h2 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.8em;
}

.lmm-team.blue-team h2 { color: #1e88e5; }
.lmm-team.red-team h2 { color: #d32f2f; }

.lmm-team-players {
    margin-bottom: 20px;
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 15px;
    min-height: 200px;
}

.lmm-player-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.6);
    border-radius: 5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.lmm-player-name {
    font-weight: bold;
    font-size: 1.1em;
    flex: 1;
}

.lmm-player-stats {
    display: flex;
    gap: 15px;
}

.lmm-stat-badge {
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.lmm-team-stats {
    background: rgba(0,0,0,0.08);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.lmm-team-stats p {
    margin: 8px 0;
}

.lmm-team-stats span {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

/* ===== MATCH RESULT ===== */
.lmm-match-result {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.lmm-match-result h3 {
    margin-top: 0;
    color: #333;
}

.lmm-result-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-primary { background: #1e88e5; color: white; }
.btn-primary:hover { background: #1565c0; transform: translateY(-2px); }

.btn-secondary { background: #757575; color: white; }
.btn-secondary:hover { background: #616161; }

.btn-blue { background: #1e88e5; color: white; padding: 15px 40px; font-size: 1.1em; }
.btn-blue:hover { background: #1565c0; transform: translateY(-3px); }

.btn-red { background: #d32f2f; color: white; padding: 15px 40px; font-size: 1.1em; }
.btn-red:hover { background: #b71c1c; transform: translateY(-3px); }

.lmm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== WHEEL ===== */
.lmm-wheel-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.lmm-wheel-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.lmm-presence-selector {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.lmm-presence-selector h3 {
    margin-top: 0;
}

#lmm-players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.lmm-player-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.2s;
}

.lmm-player-checkbox:hover {
    border-color: #1e88e5;
    background: #f0f7ff;
}

.lmm-player-checkbox input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lmm-player-checkbox label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: 0.9em;
}

.lmm-wheel-result.hidden { display: none; }

.lmm-wheel-result {
    margin-top: 30px;
}

.lmm-teams-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lmm-team-result {
    padding: 20px;
    border-radius: 8px;
    border: 3px solid;
}

.lmm-team-result.blue {
    background: #e3f2fd;
    border-color: #1e88e5;
}

.lmm-team-result.red {
    background: #ffebee;
    border-color: #d32f2f;
}

.lmm-team-result h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.5em;
}

.lmm-team-result.blue h3 { color: #1e88e5; }
.lmm-team-result.red h3 { color: #d32f2f; }

.lmm-team-result ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lmm-team-result li {
    padding: 10px;
    background: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    border-radius: 5px;
    font-weight: 500;
    border-left: 4px solid;
}

.lmm-team-result.blue li { border-left-color: #1e88e5; }
.lmm-team-result.red li { border-left-color: #d32f2f; }

/* ===== ARCHIVE ===== */
.lmm-archive-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.lmm-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.lmm-archive-header h1 {
    font-size: 2.5em;
    color: #333;
    margin: 0 0 10px 0;
}

.lmm-archive-header p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

.lmm-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.lmm-filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lmm-filter-btn:hover {
    border-color: #1e88e5;
    color: #1e88e5;
}

.lmm-filter-btn.active {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
}

.lmm-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.lmm-player-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #ddd;
}

.lmm-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.lmm-player-card.present {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, #f1f5fe 0%, #ffffff 100%);
}

.lmm-player-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: #333;
    position: relative;
}

.lmm-present-badge {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    float: right;
    margin-top: 5px;
}

.lmm-player-role {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    width: fit-content;
}

.lmm-player-role .role-icon { font-size: 1.5em; }
.lmm-player-role .role-name { font-weight: 600; color: #555; }

.lmm-player-stats-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.lmm-stat {
    text-align: center;
}

.lmm-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.lmm-stat-value.wins { color: #4caf50; }
.lmm-stat-value.losses { color: #f44336; }
.lmm-stat-value.winrate { color: #1e88e5; }

.lmm-stat-label {
    font-size: 0.85em;
    color: #999;
    font-weight: 500;
}

.lmm-player-stats-secondary {
    margin-bottom: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.lmm-player-stats-secondary p {
    margin: 6px 0;
    font-size: 0.95em;
    color: #555;
}

.lmm-player-progress {
    margin-bottom: 15px;
}

.lmm-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.lmm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #1e88e5 100%);
    transition: width 0.5s ease;
}

.lmm-progress-bar small {
    font-size: 0.8em;
    color: #999;
}

/* ===== ADMIN REQUEST ===== */
.lmm-admin-request {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lmm-admin-request h2 {
    color: #333;
    margin-top: 0;
}

.lmm-admin-request textarea {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.lmm-admin-request textarea:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

#lmm-admin-message {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lmm-teams-container,
    .lmm-teams-result {
        grid-template-columns: 1fr;
    }
    
    .lmm-actions,
    .lmm-result-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .lmm-players-grid {
        grid-template-columns: 1fr;
    }
    
    .lmm-match-dashboard h1 {
        font-size: 1.8em;
    }
}

/* ===== EDIT BUTTON ===== */
.lmm-edit-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
    margin-top: 15px;
}

.lmm-edit-btn:hover {
    background: #1565c0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

