/* Style personnalisé pour GymDépôt.ca */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #c0392b;
  --gray-color: #95a5a6;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header et navigation */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-dark .navbar-brand {
  color: white;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
}

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

.navbar-dark .nav-link:hover {
  color: white;
}

/* Page de connexion */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.login-card {
  max-width: 450px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: white;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* Tableau de bord */
.dashboard-stats {
  margin-bottom: 2rem;
}

.stat-card {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: white;
  transition: transform 0.2s ease-in-out;
}

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

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-color);
}

/* Cartes et conteneurs */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
  padding: 1rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.main-content {
  padding: 2rem 0;
  flex: 1;
}

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

.table thead th {
  border-top: none;
  border-bottom-width: 1px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gray-color);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
  font-size: 0.75rem;
}

.badge-nouvelle {
  background-color: var(--primary-color);
  color: white;
}

.badge-en_traitement {
  background-color: var(--warning-color);
  color: white;
}

.badge-expediee {
  background-color: var(--primary-color);
  color: white;
}

.badge-livree {
  background-color: var(--success-color);
  color: white;
}

.badge-annulee {
  background-color: var(--danger-color);
  color: white;
}

/* Boutons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon i {
  margin-right: 0.5rem;
}

/* Formulaires */
.form-control {
  border-radius: 4px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Alertes et messages */
.alert {
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  margin-top: auto;
  color: var(--gray-color);
}

/* Détails commande */
.commande-details .row {
  margin-bottom: 1rem;
}

.commande-totals {
  margin-top: 2rem;
  text-align: right;
}

.commande-totals .total-row {
  padding: 0.5rem 0;
  border-top: 1px solid #eee;
}

.commande-totals .total-label {
  font-weight: 500;
}

.commande-totals .grand-total {
  font-weight: 700;
  font-size: 1.2rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 2px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}
