/* Custom styles for tournament application */

/* Dashboard specific styles */
#tournament-info h4 {
    margin-bottom: 20px;
    font-weight: bold;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

#charts-container {
    margin-top: 20px;
}

/* Form styling enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

select.form-control {
    height: calc(2.25rem + 6px);
}

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

/* Responsive table improvements */
@media screen and (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* Custom styles for tournament application */

/* Dashboard specific styles */
.dashboard-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-header h2 {
    font-weight: 600;
    margin-bottom: 0;
}

.dashboard-header .form-group {
    margin-bottom: 0;
}

.dashboard-header select {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 45px;
    font-size: 1.1rem;
}

.stat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card h3 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.tournament-progress-container .card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: none;
}

.tournament-progress-container .card-header {
    background: linear-gradient(135deg, #343a40 0%, #121416 100%);
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border: none;
}

.tournament-progress-container .progress {
    height: 25px;
    border-radius: 5px;
    margin-top: 10px;
}

.tournament-progress-container .progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
}

.chart-container {
    margin-bottom: 25px;
}

.chart-container .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: auto;  /* Override previous fixed height */
}

.chart-container .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

/* Dashboard chart heights adjustments */
.chart-container .card-body {
    height: 350px;  /* Control the height of chart containers */
    position: relative;
}

.fancy-stat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Fix for fancy stat cards padding and overlapping issues */
.fancy-stat-card .card-body {
    padding: 1.5rem;
    position: relative;
    min-height: 140px;  /* Ensure enough height for content */
}

.fancy-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 1rem;  /* Add space between value and indicator */
    padding-bottom: 15px; /* Additional padding at the bottom */
}

.fancy-stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fancy-stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
}

.fancy-stat-card .trend-indicator {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
}

.fancy-stat-card .trend-up {
    color: #28a745;
}

.fancy-stat-card .trend-down {
    color: #dc3545;
}

.fancy-stat-card .trend-neutral {
    color: #6c757d;
}

.location-stats-table th,
.location-stats-table td {
    vertical-align: middle;
}

.location-stats-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-stats-table .progress {
    height: 10px;
    border-radius: 5px;
    margin: 0;
}

/* Custom color palette */
.bg-primary-gradient {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-info-gradient {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
}

.bg-secondary-gradient {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%);
}

.bg-light-gradient {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    color: #5a5c69;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, #5a5c69 0%, #373840 100%);
}

/* Form styling enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

select.form-control {
    height: calc(2.25rem + 6px);
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Responsive table improvements */
@media screen and (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .dashboard-header {
        padding: 15px;
    }
}