/* Asset Manager - Main Styles */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.btn {
  border-radius: 4px;
}

.table {
  background-color: white;
}

.badge {
  padding: 5px 10px;
  border-radius: 4px;
}

/* Dashboard Cards */
.metric-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.2s;
}

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

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0;
}

.metric-label {
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.timeline-row {
  border-bottom: 1px solid #dee2e6;
  padding: 10px 0;
}

.timeline-row:hover {
  background-color: #f8f9fa;
}

.booking-block {
  display: inline-block;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.booking-gola {
  background-color: #d1ecf1;
  border-left: 4px solid #0dcaf0;
}

.booking-exercise {
  background-color: #d1e7dd;
  border-left: 4px solid #198754;
}

.booking-demo {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

/* Status Badges */
.status-available {
  background-color: #198754;
  color: white;
}

.status-in_use {
  background-color: #0dcaf0;
  color: white;
}

.status-dmr {
  background-color: #dc3545;
  color: white;
}

.status-maintenance {
  background-color: #ffc107;
  color: #000;
}

.status-retired {
  background-color: #6c757d;
  color: white;
}

/* Health Status */
.health-good {
  color: #198754;
}

.health-warning {
  color: #ffc107;
}

.health-critical {
  color: #dc3545;
}

.health-unknown {
  color: #6c757d;
}

/* QR Code */
.qr-code-container {
  text-align: center;
  padding: 20px;
}

.qr-code-container img {
  max-width: 300px;
  border: 1px solid #dee2e6;
  padding: 10px;
  background: white;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #198754;
}

.alert-danger {
  border-left-color: #dc3545;
}

.alert-warning {
  border-left-color: #ffc107;
}

.alert-info {
  border-left-color: #0dcaf0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .metric-card {
    margin-bottom: 15px;
  }

  .table-responsive {
    font-size: 0.9rem;
  }
}
