/* public/css/style.css */

/* Custom styles for Pool League website */

/* Body and general styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Main navigation */
.navbar-brand i {
    color: #ff6b6b;
}

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

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

.card-header h4 {
    margin-bottom: 0;
}

/* Match items */
.match-item {
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    transition: all 0.2s;
}

.match-item:hover {
    background-color: #f0f8ff;
    border-left-color: #0056b3;
}

.match-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Team tables */
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* League table styling */
.league-table th {
    background-color: #343a40;
    color: white;
}

.league-table .team-name {
    font-weight: 600;
}

/* Stats tables */
.stats-table th {
    background-color: #17a2b8;
    color: white;
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
}

/* Footer */
footer {
    margin-top: 50px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Scoresheet specific styles */
.frame-box {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.frame-box.singles {
    background-color: #f8f9fa;
}

.frame-box.doubles {
    background-color: #e9ecef;
}

.frame-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.winner-highlight {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Player stats */
.player-stats-card {
    border-left: 4px solid #17a2b8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .match-item {
        padding: 10px;
    }
    
    .match-score {
        font-size: 1rem;
    }
}