/* styles.css - Foglio di stile principale del CRM */

/* === STILI GENERALI === */
body { 
  background-color: #121212; 
  color: #fff; 
  margin: 0; 
}

/* === SIDEBAR === */
.sidebar {
  background-color: #1f1f1f;
  padding-top: 20px;
  height: 100vh;
  position: fixed;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.sidebar a {
  color: #F29400;
  font-size: 1.5em;
  margin: 20px 0;
  text-align: center;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #fff;
  text-decoration: none;
}

/* === MAIN CONTENT === */
.main-content {
  margin-left: 80px;
  padding: 20px;
}

/* === CARDS === */
.card {
  background-color: #1f1f1f;
  border: none;
  margin-bottom: 20px;
}

.card-header {
  background-color: #F29400;
  color: #000;
  font-weight: bold;
  text-align: center;
}

/* === BUTTONS === */
.btn-primary {
  background-color: #F29400;
  border: none;
  color: #000;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #e08500;
  color: #000;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-warning {
  color: #000;
}

.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

/* === TABLES === */
.table {
  color: #fff;
}

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

.table-dark {
  background-color: #2a2a2a;
}

/* === MODALS === */
.modal-content {
  background-color: #1f1f1f;
  color: #fff;
}

/* === FORMS === */
.form-control {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

.form-control option {
  background-color: #333;
  color: #fff;
}

.form-control:focus {
  background-color: #333;
  border-color: #F29400;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(242, 148, 0, 0.25);
}

/* Date picker specifico */
input[type="date"].form-control {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* === LOGIN PAGE === */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: #1f1f1f;
  border-radius: 10px;
}

/* === REAL-TIME REPORT SPECIFICI === */
.odometer {
  font-size: 2.5em;
  color: #F29400;
  border: 2px solid #F29400;
  border-radius: 10px;
  padding: 10px 20px;
  display: inline-block;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 300px;
  width: 100%;
}

.progress {
  background-color: #000;
  height: 25px;
}

.progress-bar span {
  color: #fff;
  font-weight: bold;
  font-size: 0.9em;
}

#localTime {
  font-size: 1.5em;
  color: #F29400;
  font-weight: bold;
}

.no-events-message {
  text-align: center;
  padding: 20px;
  background-color: #333;
  border-radius: 5px;
  margin: 20px 0;
}

/* === ASSIGN EVENT USER SPECIFICI === */
.assigned-events {
  max-height: 200px;
  overflow-y: auto;
}

.badge-event {
  margin: 2px;
}

.event-list {
  max-height: 400px;
  overflow-y: auto;
}

.board-notice {
  background-color: #333;
  border-left: 4px solid #F29400;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* === ADD EVENT SPECIFICI === */
.universe-code-table {
  max-height: 300px;
  overflow-y: auto;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Flatpickr override */
input.flatpickr-input {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #555;
}

/* === FRANCE BILLET SPECIFICI === */
.france-billet-header {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.france-billet-badge {
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

/* Override odometer per France Billet */
.france-billet-page .odometer {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Override progress bar per France Billet */
.france-billet-page .progress-bar {
  background-color: #e74c3c !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar {
    flex-direction: row;
    height: auto;
    width: 100%;
    justify-content: space-around;
    position: relative;
  }
  
  .main-content {
    margin-left: 0;
    margin-top: 0;
  }
}

/* === UTILITY CLASSES === */
.text-muted {
  color: #6c757d !important;
}

.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

/* Hover effects */
.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.075);
}

/* Active states */
.btn-outline-light.active {
  background-color: #F29400;
  color: #000;
  border-color: #F29400;
}