body {
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--bg-darker);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-lg);
  z-index: 100;
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.header__user {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:hover { background: var(--danger-hover); }

.btn--secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.btn--secondary:hover { background: rgba(255,255,255,0.15); }

.btn--success {
  background: var(--success);
  color: #fff;
}

.btn--large {
  padding: var(--sp-md) var(--sp-xl);
  font-size: 1.1rem;
  border-radius: var(--border-radius);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: var(--sp-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--sp-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-select {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-select option {
  background: var(--bg-card);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--sp-xl);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  color: var(--accent);
}

.modal__actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: flex-end;
  margin-top: var(--sp-lg);
}

/* Alerts */
.alert {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--sp-md);
  font-size: 0.9rem;
}

.alert--error {
  background: rgba(218, 54, 51, 0.2);
  border: 1px solid var(--danger);
  color: #f85149;
}

.alert--success {
  background: rgba(46, 160, 67, 0.2);
  border: 1px solid var(--success);
  color: #56d364;
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
