/* ===== Layout ===== */

.app-layout {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.sidebar {
  width: 240px;
  background: #f1f3f5;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #dee2e6;
  background: #fff;
}

/* ===== Top Bar ===== */

.top-bar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}

/* ===== Sidebar Navigation ===== */

.sidebar .nav-link {
  color: #495057;
  border-radius: 8px;
  margin: 4px 8px;
  padding: 8px 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
}

.sidebar .nav-link.active {
  background-color: #dee2e6;
  font-weight: 600;
  color: #212529;
}

.sidebar-section {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  padding: 0.75rem 1rem 0.25rem;
}

/* ===== Content Spacing ===== */

.content-wrapper {
  padding: 2rem;
}

/* ===== Cards & Dashboard ===== */

.card-header {
  font-weight: 600;
}

.metric-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 600;
}

body {
  background-color: #f8f9fa;
  font-size: 0.95rem;
}

.mobile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

.card + .card {
  margin-top: 1rem;
}

.btn-lg {
  padding: 0.75rem 1rem;
}

.card {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header,
.card-footer {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.progress {
  border-radius: 8px;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge {
  font-weight: 500;
}

/* ===== Responsive Layout ===== */

@media (max-width: 768px) {

  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-bottom: 1px solid #dee2e6;
  }

  .main-content {
    border-left: none;
  }

  .content-wrapper {
    padding: 1.25rem;
  }

  .card {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

}