/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f7f8fc;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn i {
  font-size: 14px;
}

/* Button Variants */
.btn-primary {
  background-color: #5c6ac4;
  color: #fff;
}
.btn-primary:hover { background-color: #4b55a6; }

.btn-secondary {
  background-color: #e2e8f0;
  color: #333;
}
.btn-secondary:hover { background-color: #cbd5e1; }

.btn-outline {
  background: transparent;
  border: 1px solid #5c6ac4;
  color: #5c6ac4;
}
.btn-outline:hover {
  background: #5c6ac4;
  color: #fff;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background-color: #1f2937;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  font-size: 28px;
  margin-right: 10px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  margin-bottom: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  color: #cbd5e1;
  transition: all 0.2s;
}

.nav-link i {
  margin-right: 12px;
}

.nav-link:hover,
.nav-link.active {
  background-color: #3b82f6;
  color: #fff;
}

.nav-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.header-title p {
  color: #6b7280;
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Content Cards */
.content-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.stat-icon {
  font-size: 22px;
  color: #3b82f6;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 12px;
  color: #6b7280;
}

/* Filters */
.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.form-select, .form-input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

.form-select:focus, .form-input:focus {
  border-color: #3b82f6;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.data-table tr:hover {
  background-color: #f9fafb;
}

.data-table td button {
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .filters-section {
    flex-direction: column;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
