/* Golf Club Imola - Custom Styles */

:root {
    --golf-dark: #1B5E20;
    --golf-primary: #2E7D32;
    --golf-light: #4CAF50;
    --golf-accent: #81C784;
    --golf-sand: #F5F5DC;
    --golf-white: #FFFFFF;
    --golf-text: #333333;
}

/* Background gradient for login */
.bg-golf-gradient {
    background: linear-gradient(135deg, var(--golf-dark) 0%, var(--golf-primary) 50%, var(--golf-light) 100%);
}

/* Navbar */
.bg-golf-dark {
    background-color: var(--golf-dark) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--golf-accent);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Login Card */
.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 16px;
}

.golf-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--golf-dark), var(--golf-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.golf-logo i {
    font-size: 2.5rem;
    color: white;
}

.text-golf-dark {
    color: var(--golf-dark);
}

/* Buttons */
.btn-golf {
    background: linear-gradient(135deg, var(--golf-dark), var(--golf-primary));
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-golf:hover {
    background: linear-gradient(135deg, var(--golf-primary), var(--golf-light));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.btn-golf-outline {
    border: 2px solid var(--golf-primary);
    color: var(--golf-primary);
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-golf-outline:hover {
    background: var(--golf-primary);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: var(--golf-sand);
    border-bottom: 1px solid rgba(27, 94, 32, 0.1);
    font-weight: 600;
    color: var(--golf-dark);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--golf-dark);
    color: white;
    font-weight: 500;
    border: none;
    padding: 12px 16px;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(129, 199, 132, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(129, 199, 132, 0.2);
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--golf-light);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--golf-text);
}

/* Dashboard cards */
.stat-card {
    border-left: 4px solid var(--golf-primary);
    transition: transform 0.2s ease;
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--golf-dark), var(--golf-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--golf-dark);
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Page header */
.page-header {
    border-bottom: 2px solid var(--golf-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    color: var(--golf-dark);
    font-weight: 600;
}

/* Badge categories */
.badge-cat1 {
    background-color: #FFD700;
    color: #333;
}

.badge-cat2 {
    background-color: #C0C0C0;
    color: #333;
}

/* Score grid */
.score-grid {
    overflow-x: auto;
}

.score-grid table {
    min-width: 100%;
}

.score-grid input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 4px 8px;
}

.score-grid .buca-header {
    background-color: var(--golf-primary);
    color: white;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.score-grid .par-row {
    background-color: var(--golf-sand);
    font-weight: 500;
}

.score-grid .totals-row {
    background-color: var(--golf-dark);
    color: white;
    font-weight: 600;
}

/* Classifica */
.classifica-table .position-1 {
    background-color: rgba(255, 215, 0, 0.3) !important;
}

.classifica-table .position-2 {
    background-color: rgba(192, 192, 192, 0.3) !important;
}

.classifica-table .position-3 {
    background-color: rgba(205, 127, 50, 0.3) !important;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(27, 94, 32, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-card .stat-icon i {
        font-size: 1.5rem;
    }
}

/* Action buttons in tables */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Search/Filter section */
.filter-section {
    background-color: var(--golf-sand);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: var(--golf-accent);
    margin-bottom: 1rem;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--golf-dark);
}

.dropdown-item i {
    color: var(--golf-primary);
}
