/* VDZ6 Team Manager - Clean CSS without theming */

/* Mobile-first responsive design */
.btn {
    touch-action: manipulation;
    min-height: 44px;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Attendance grid styling */
.attendance-grid {
    overflow-x: auto;
}

.attendance-table {
    min-width: 600px;
    margin-bottom: 0;
}

.attendance-table th,
.attendance-table td {
    padding: 2px 4px;
    font-size: 0.75rem;
    line-height: 1.1;
    border-width: 1px;
}

.attendance-table th {
    padding: 4px 2px;
}

.attendance-cell {
    cursor: pointer;
    min-width: 60px;
    text-align: center;
    user-select: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.attendance-available {
    background-color: #d4edda !important;
    color: #155724;
}

.attendance-unavailable {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* Sticky header for attendance table */
.attendance-table .sticky-start {
    background-color: #f8f9fa !important;
    color: #212529;
    border-right: 2px solid #dee2e6;
}

/* Live game styling */
.player-button {
    margin: 2px;
    min-height: 50px;
    transition: all 0.2s ease;
}

.player-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Game log styling */
.game-log {
    max-height: 400px;
    overflow-y: auto;
}

.game-log .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.game-log .list-group-item:hover {
    border-left-color: #0d6efd;
    background-color: #f8f9fa;
}

/* Player selection dropdowns */
.player-select-container {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Stats page specific styling */
.stats-card {
    transition: all 0.3s ease;
}

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

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Top scorers styling */
.top-scorer-item {
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.top-scorer-item:hover {
    background-color: #f8f9fa;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn-sm {
        min-height: 40px;
    }
    
    .timer-display {
        font-size: 1.5rem;
    }
    
    /* 2x attendance cell height for easier mobile selection */
    .attendance-table th,
    .attendance-table td {
        padding: 8px 4px !important;
        min-height: 44px !important;
        vertical-align: middle !important;
    }
    
    .attendance-table .attendance-cell {
        min-height: 44px !important;
        line-height: 44px !important;
        padding: 8px 4px !important;
    }
    
    /* Ensure header colors work on mobile */
    .attendance-table .table-success {
        background-color: #d1e7dd !important;
    }
    
    .attendance-table .table-warning {
        background-color: #fff3cd !important;
    }
}

/* PWA specific styles */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}