:root {
  --primary: #4b1d6d;
  --secondary: #d4af37;
  --bg: #f8f9fc;
  --white: #ffffff;
  --sidebar-width: 250px;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  margin: 0;
  display: flex;
  height: 100vh;
  color: #333;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary);
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  border-right: 4px solid var(--secondary);
}

/* Main */
.main {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
}

.btn-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-add:hover {
  background: #3a1655;
  transform: translateY(-2px);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.stat-card span {
  color: #888;
  font-size: 0.9rem;
}
.stat-card h3 {
  margin: 0.5rem 0 0 0;
  font-size: 1.6rem;
  color: var(--primary);
}

/* Management Area */
.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

input,
select {
  padding: 0.7rem 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  font-family: inherit;
}

.search {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid #f8f9fc;
  color: #666;
  font-size: 0.9rem;
}
td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #f8f9fc;
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-full {
  background: #fff3e0;
  color: #e65100;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #4b1d6d;
  font-weight: 600;
  padding: 5px;
}
.btn-delete {
  color: #d32f2f;
}

/* 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;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  width: 400px;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2rem;
}
.btn-cancel {
  background: #eee;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-save {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
}
