/* static/css/main.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make footer stick to bottom */
main {
    flex: 1 0 auto;
}

/* Card styling */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 1rem;
}

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

/* League cards */
.league-card {
    height: 100%;
}

.league-card .card-header {
    font-weight: bold;
}

/* Team styling */
.team-row {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.team-row:last-child {
    border-bottom: none;
}

/* Rank styling */
.rank-1 {
    background-color: rgba(255, 215, 0, 0.2);
}

.rank-2 {
    background-color: rgba(192, 192, 192, 0.2);
}

.rank-3 {
    background-color: rgba(205, 127, 50, 0.2);
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive-card {
        border: 0;
    }
    
    .table-responsive-card thead {
        display: none;
    }
    
    .table-responsive-card tr {
        margin-bottom: 1rem;
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    .table-responsive-card td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table-responsive-card td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
    }
    
    .table-responsive-card td:last-child {
        border-bottom: 0;
    }
}

/* Form styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Profile styling */
.profile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
}

/* League detail styling */
.league-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.commissioner-badge {
    background-color: var(--warning-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Dark mode toggle switch */
.dark-mode-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles */
.dark-mode {
    --background-color: #121212;
    --text-color: #f8f9fa;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: var(--text-color);
}

.dark-mode .navbar {
    background-color: #000 !important;
}

.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

.dark-mode .text-muted {
    color: #adb5bd !important;
}
