/* ============================================ */
/* NEXUS IT - Admin Dashboard (Dark Theme)      */
/* ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #0d0d12;
  color: #f0f0f8;
  line-height: 1.5;
}

/* Admin Container */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Dark Theme */
.sidebar {
  width: 260px;
  background: #14141c;
  border-right: 1px solid #2a2a35;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 1.5rem;
}

.sidebar-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a35;
}

.sidebar-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f0f8;
}

.sidebar-header p {
  font-size: 0.7rem;
  color: #88889a;
  margin-top: 0.25rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: #a0a0b5;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background: #22222b;
  color: #f0f0f8;
}

.sidebar-nav a.active {
  background: rgba(0,229,160,0.12);
  color: #00e5a0;
  font-weight: 600;
}

.badge {
  background: #ff5c8a;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}

.sidebar-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a35;
}

.sidebar-footer a {
  display: block;
  padding: 0.5rem;
  color: #88889a;
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 8px;
}

.sidebar-footer a:hover {
  background: #22222b;
  color: #f0f0f8;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 1.5rem 2rem;
}

/* Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f0f8;
}

.user-info {
  font-size: 0.8rem;
  color: #88889a;
}

.user-info strong {
  color: #f0f0f8;
}

/* Alert Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.alert-success {
  background: rgba(0,229,160,0.12);
  border: 1px solid rgba(0,229,160,0.3);
  color: #00e5a0;
}

.alert-error {
  background: rgba(255,92,138,0.12);
  border: 1px solid rgba(255,92,138,0.3);
  color: #ff5c8a;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #18181f;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #00e5a0;
}

.stat-label {
  font-size: 0.75rem;
  color: #88889a;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background: #18181f;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2a2a35;
  background: #1b1b24;
}

.card-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f8;
}

.card-body {
  padding: 1.25rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0a0b5;
  background: #1b1b24;
  border-bottom: 1px solid #2a2a35;
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #2a2a35;
  color: #c8c8d8;
}

tr:hover td {
  background: #1b1b24;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #00e5a0;
  color: #0d0d12;
}

.btn-primary:hover {
  background: #10f5b0;
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: #ff5c8a;
  border: 1px solid #ff5c8a;
}

.btn-danger:hover {
  background: rgba(255,92,138,0.15);
}

.btn-secondary {
  background: #22222b;
  color: #a0a0b5;
  border: 1px solid #2a2a35;
}

.btn-secondary:hover {
  background: #2a2a36;
  color: #f0f0f8;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0a0b5;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #0d0d12;
  border: 1px solid #2a2a35;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #f0f0f8;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #00e5a0;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.file-upload {
  border: 2px dashed #2a2a35;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #0d0d12;
  color: #a0a0b5;
}

.file-upload:hover {
  border-color: #00e5a0;
  background: rgba(0,229,160,0.05);
  color: #f0f0f8;
}

.img-preview {
  max-width: 150px;
  max-height: 80px;
  border-radius: 6px;
  margin-top: 0.5rem;
  border: 1px solid #2a2a35;
}

.img-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2a2a35;
}

.logo-preview {
  max-width: 200px;
  max-height: 80px;
  margin-bottom: 0.5rem;
  background: #0d0d12;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a35;
}

/* Slider for logo size */
.size-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.size-slider input {
  flex: 1;
  max-width: 200px;
}

.size-value {
  font-size: 0.85rem;
  color: #00e5a0;
  font-weight: 600;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #18181f;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #f0f0f8;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a35;
}

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot.unread {
  background: #00e5a0;
}

.status-dot.read {
  background: #2a2a35;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 100;
    transition: transform 0.3s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}