/* ============================================================
   ITAssets Manager - style.css
   ============================================================ */

/* Layout */
body {
  background-color: #f4f6f9;
  color: #2d3436;
}

.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 110px);
}

/* Login */
.login-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  margin-top: 0 !important;
}

.login-card {
  border: none;
  border-radius: 16px;
}

.login-icon {
  width: 64px;
  height: 64px;
  background: #1a1a2e;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
  font-size: 28px;
}

/* Cards */
.card {
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-radius: 10px;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
  padding: .75rem 1.25rem;
}

/* Badges statuts */
.badge-info     { background-color: #d1ecf1; color: #0c5460; }
.badge-success  { background-color: #d4edda; color: #155724; }
.badge-danger   { background-color: #f8d7da; color: #721c24; }
.badge-warning  { background-color: #fff3cd; color: #856404; }
.badge-secondary{ background-color: #e2e3e5; color: #383d41; }

/* Formulaire demandes */
.equip-block {
  transition: border-color .2s;
}
.equip-block:hover {
  border-color: #adb5bd !important;
}
.equip-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.equip-detail {
  transition: all .25s ease;
}

/* Dashboard stats */
.stat-card {
  border-left: 4px solid;
  transition: transform .15s;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-card.primary  { border-left-color: #0d6efd; }
.stat-card.success  { border-left-color: #198754; }
.stat-card.warning  { border-left-color: #ffc107; }
.stat-card.danger   { border-left-color: #dc3545; }
.stat-card.info     { border-left-color: #0dcaf0; }

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* Tables */
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Navbar */
.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -.3px;
}

/* Timeline historique */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6c757d;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
}
.timeline-dot.success { background: #198754; }
.timeline-dot.danger  { background: #dc3545; }
.timeline-dot.info    { background: #0dcaf0; }
.timeline-dot.warning { background: #ffc107; }

/* Responsive */
@media (max-width: 768px) {
  .stat-number { font-size: 1.5rem; }
  .main-content { margin-top: 60px; }
}

/* Print */
@media print {
  .navbar, footer, .btn, .breadcrumb { display: none !important; }
  .main-content { margin-top: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
