/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
  color: #333;
  display: flex;
  min-height: 100vh;
}

/* App Layout */
.app-container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #111827;
  color: #fff;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: width 0.3s;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  font-size: 24px;
  color: #3b82f6;
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
}

.sidebar-nav {
  flex-grow: 1;
}

.nav-list {
  list-style: none;
}

.nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background: #1e293b;
  color: #fff;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  flex: 1;
  padding: 20px;
  transition: margin-left 0.3s;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.header-title h1 {
  font-size: 22px;
  margin-bottom: 5px;
}

.header-title p {
  color: #6b7280;
  font-size: 14px;
}

.page-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

/* Content Area */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Filters Section */
.filters-section {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group label {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

.form-input,
.form-select {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

/* Card / Table */
.content-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  background: #f9fafb;
  font-weight: bold;
  font-size: 14px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3b82f6;
  color: #fff;
  padding: 12px 16px;
}

.modal-body {
  padding: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
