/* static/main.css */

/* --- General Theme & Typography --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa; /* Light grey background */
    color: #333333; /* Dark grey text for readability */
    font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6; /* Light grey border */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-brand span {
  font-weight: 700;
  color: #218838; /* Dark Green */
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
  color: #495057 !important; /* Dark grey for readability */
    font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.nav-link:hover, .nav-link.active {
    color: #28a745 !important; /* Primary Green */
    background-color: #e9f5e9;
}

/* --- Hero Section (Landing Page) --- */
.hero {
    background: linear-gradient(135deg, #e6ffe6, #ffffff);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
}

.hero h1 {
    font-weight: 700;
    color: #218838;
}

.hero .lead {
    font-size: 1.25rem;
    color: #495057;
}

/* --- Buttons --- */
.btn-primary, .btn-success {
    background-color: #28a745; /* Primary Green */
    border-color: #28a745;
    color: #ffffff;
    font-weight: 700;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #218838; /* Darker Green */
    border-color: #1e7e34;
    color: #ffffff;
}

/* --- Game Page Specifics --- */
.card, .suggestions-container {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.player-info {
    border-top: 4px solid #28a745; /* Accent color */
}

.card-title, .alert-info {
    color: #218838; /* Dark Green */
    font-weight: 700;
}

/* Filters */
#filtersCollapse .card-body {
    background-color: #f8f9fa; /* Light grey */
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* --- Input Fields & Autocomplete --- */
.form-control, .form-select, .alert {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #495057;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.form-control::placeholder {
    color: #8899a6;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    color: #495057;
}

.autocomplete {
    position: relative;
}

.suggestions-container:hover {
    background-color: #f0f0f0;
}

.suggestions-container div {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #1f4068;
}

.suggestions-container div:last-child {
    border-bottom: none;
}

.suggestions-container div:hover {
    background-color: #e6ffe6;
    color: #218838;
}

/* Progress Bar */
.progress {
    height: 1.5rem;
    font-size: 0.9rem;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #28a745;
}

/* --- Tables --- */
.table, .table-bordered, .table-striped, .table-hover {
    width: 100%;
    margin-bottom: 1rem;
    color: #218838; /* Dark green text */
    background-color: #ffffff !important; /* White background */
    border: 1px solid #28a745;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6; /* Light grey for subtle separation */
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #28a745;
    background-color: #ffffff !important; /* White background */
    color: #218838 !important; /* Dark green text */
    text-align: left;
}

.table tbody + tbody {
    border-top: 2px solid #28a745;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Very light grey for striping */
}

.table-hover tbody tr:hover {
    color: #218838;
    background-color: #e6ffe6; /* Light green hover */
}

/* --- Footer --- */
footer {
    background-color: #ffffff;
  border-top: 1px solid #218838;
  color: #218838;
  font-size: 0.9rem;
}