/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../img/runner.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255,255,255,0.75);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%; 
    box-sizing: border-box;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

input:not([type="checkbox"]):not([type="radio"]), button, textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

select {
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #218838;
}

a.button-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

a.button-link:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
}

.race-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card {
    background: #fff;
    padding: 15px;
    flex: 1 1 calc(50% - 20px);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #007bff;
    min-width: 280px;
}

.status-green {
    color: #28a745;
    font-weight: bold;
}

.status-yellow {
    color: #ffc107;
    font-weight: bold;
}

.status-red {
    color: #dc3545;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.select2-container {
    width: 100% !important;
}

@media (max-width: 600px) {
    .container {
        margin: 0px;
        padding: 15px;
    }

    table, th, td {
        font-size: 14px;
    }

    button, input, select {
        font-size: 14px;
    }
}
.select2-container--default .select2-selection--single {
  height: auto !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid #aaa !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
}

.select2-selection__rendered {
  display: inline-block !important;
  padding-left: 8px !important;
  line-height: normal !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 16px !important;
  position: relative !important;
}

.select2-selection__clear {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

select.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
  touch-action: none !important;
  opacity: 0 !important;
}
