/* style.css - Feuille de style principale de l'application POS */

/* --- RESET DE BASE --- */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* --- NAVBAR --- */
.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
}

.navbar .btn-outline-light {
  font-size: 0.85rem;
}

/* --- STAT CARDS --- */
.card-stat {
  border: none;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.card-stat:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.card-stat .card-body {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-stat h4 {
  font-weight: bold;
  margin: 0;
}

/* --- TABLEAU --- */
.table thead {
  background-color: #e9ecef;
}

.table th,
.table td {
  vertical-align: middle !important;
  font-size: 0.875rem;
}

/* --- FORMULAIRES --- */
.form-control,
.form-select {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.form-label {
  font-weight: 500;
}

button.btn {
  font-size: 0.9rem;
}

/* --- MODAL --- */
.modal .form-control {
  font-size: 0.9rem;
}

/* --- LISTE LOGS --- */
#logsList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- GRAPHIQUES --- */
canvas {
  width: 100% !important;
  height: auto !important;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 576px) {
  .card-stat .card-body {
    flex-direction: column;
    text-align: center;
  }
  .card-stat i {
    margin-bottom: 0.5rem;
  }
}
