* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: #000;
  border-bottom: 2px solid #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.role-badge {
  background: #fff;
  color: #000;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 70px;
  width: 250px;
  height: calc(100vh - 70px);
  background: #1a1a1a;
  border-right: 2px solid #fff;
  padding: 20px 0;
  overflow-y: auto;
}

.sidebar-link {
  display: block;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.sidebar-link:hover {
  background: #000;
  border-left-color: #fff;
}

.sidebar-link.active {
  background: #fff;
  color: #000;
  border-left-color: #000;
}

.logout-link {
  margin-top: 20px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  margin-top: 70px;
  padding: 30px;
  min-height: calc(100vh - 70px);
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: #1a1a1a;
  border: 2px solid #fff;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
}

.login-box h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #ccc;
}

select.form-control {
  cursor: pointer;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: #000;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-danger {
  background: #fff;
  border-color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* Cards */
.card {
  background: #1a1a1a;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.card-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
}

th,
td {
  padding: 15px;
  text-align: left;
  border: 1px solid #333;
}

th {
  background: #000;
  font-weight: bold;
  position: sticky;
  top: 0;
}

tr:hover {
  background: #0a0a0a;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #1a1a1a;
  border: 2px solid #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin: 15px 0;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 2px solid;
}

.alert-success {
  background: #166534;
  border-color: #4ade80;
  color: #fff;
}

.alert-error {
  background: #991b1b;
  border-color: #f87171;
  color: #fff;
}

.alert-info {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1500;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 25px;
  }

  .card {
    padding: 15px;
  }

  .btn {
    padding: 10px 20px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .sidebar,
  .btn,
  .alert {
    display: none;
  }

  .main-content {
    margin: 0;
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-10 {
  gap: 10px;
}
