/* Dashboard Shared Styles - Premium Version */
:root {
  --sidebar-width: 260px;
  --topbar-height: 70px;
  --primary-color: #e50914;
  /* Netflix Red */
  --primary-hover: #b20710;
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-input: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-dim: #b3b3b3;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: #000;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  z-index: 1000;
}

.sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.menu-link {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link:hover,
.menu-link.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.1);
  border-left: 4px solid var(--primary-color);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2.5rem;
  max-width: 1200px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Data Card/Section */
.data-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* HIGHLY PREMIUM FORM STYLING */
.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Force override of default browser styles */
/* GLOBAL FORM CONTROL OVERRRIDE - ESSENTIAL FOR DARK THEME */
.dashboard-container .form-control,
.dashboard-container input[type="text"],
.dashboard-container input[type="email"],
.dashboard-container input[type="password"],
.dashboard-container input[type="url"],
.dashboard-container input[type="number"],
.dashboard-container select,
.dashboard-container textarea {
  width: 100% !important;
  padding: 0.9rem 1.2rem !important;
  background: #2a2a2a !important;
  border: 1px solid #404040 !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  outline: none !important;
  display: block !important;
}

.dashboard-container input:focus,
.dashboard-container select:focus,
.dashboard-container textarea:focus {
  border-color: var(--primary-color) !important;
  background: #333 !important;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1) !important;
}

.dashboard-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.2rem !important;
}

/* Table Styling */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  text-align: left;
  padding: 1.2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dashboard-section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badges */
.badge {
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.badge-success {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.badge-warning {
  background: rgba(255, 191, 0, 0.15);
  color: #ffbf00;
}

.badge-error {
  background: rgba(255, 51, 51, 0.15);
  color: #ff3333;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}