:root {
  --primary-color: #000000;
  /* Main Brand Color (Black) */
  --accent-color: #f97316;
  /* Orange Accent */
  --text-color: #333333;
  --text-light: #6b7280;
  --background-color: #f3f4f6;
  --card-bg: #ffffff;
  --input-border: #e5e7eb;
  --input-focus-ring: rgba(249, 115, 22, 0.1);
  /* Orange tint focus */
  --transition-speed: 0.3s;
  --font-main: 'Outfit', sans-serif;
  --success-bg: #dcfce7;
  --success-text: #166534;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--background-color);
  background-image: radial-gradient(at 0% 0%, hsla(0, 0%, 90%, 1) 0, transparent 50%),
    radial-gradient(at 100% 100%, hsla(0, 0%, 95%, 1) 0, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.login-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 500px;
  /* Slightly wider */
  background-color: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 80px 60px;
  /* Much taller padding */
  animation: slideUp 0.5s ease-out;
  border-top: 4px solid var(--accent-color);
  /* Orange accent top border */
  min-height: 800px;
  /* Taller static-like feel but responsive */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section {
  width: 100%;
}

.alert-container {
  min-height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo & Header */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.login-logo {
  height: 70px;
  /* Adjust based on logo aspect ratio */
  width: auto;
  object-fit: contain;
}

.header {
  text-align: center;
  margin-bottom: 45px;
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.header .dot {
  color: var(--accent-color);
}

.header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Inputs */
.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  color: #9ca3af;
  font-size: 1.2rem;
  transition: color var(--transition-speed);
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all var(--transition-speed);
  background-color: #fff;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--input-focus-ring);
}

.input-group input:focus+.input-icon {
  color: var(--accent-color);
}

.toggle-password {
  position: absolute;
  right: 16px;
  cursor: pointer;
  color: #9ca3af;
  transition: color var(--transition-speed);
}

.toggle-password:hover {
  color: var(--accent-color);
}

/* Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.remember-me input {
  accent-color: var(--accent-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.forgot-password-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Button */
.btn-login {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-speed);
}

.btn-login:hover {
  background-color: var(--accent-color);
  /* Hover to orange */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.signup-link {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.signup-link a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
  min-height: 20px;
  /* Reserve space */
}

/* Alerts */
.alert-success-custom {
  background-color: var(--success-bg);
  color: var(--success-text);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(22, 101, 52, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Dashboard & Sidebar Enhancements
   Theme: Lighter, Clean, Brand Aligned (Black & Orange)
   ========================================= */

/* --- General Overrides --- */
body {
  background-color: #f8f9fa;
  /* Lighter background for the whole app */
  color: var(--text-color);
}

a {
  transition: all 0.3s ease;
}

/* --- Sidebar Styling --- */
.sidebar {
  background-color: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar-menu-group-title {
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 20px 24px 10px;
}

.sidebar-menu li a {
  color: #4b5563;
  /* Neutral gray */
  padding: 12px 24px;
  margin: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
}

.sidebar-menu li a .menu-icon {
  font-size: 1.25rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

/* Hover State */
.sidebar-menu li a:hover {
  background-color: rgba(249, 115, 22, 0.05);
  color: var(--accent-color);
}

.sidebar-menu li a:hover .menu-icon {
  color: var(--accent-color);
}

/* Active State */
.sidebar-menu li a.active-page {
  background-color: rgba(249, 115, 22, 0.1) !important;
  color: var(--accent-color) !important;
  font-weight: 600;
}

.sidebar-menu li a.active-page .menu-icon {
  color: var(--accent-color) !important;
}

/* Logo Area */
.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 10px;
}

/* --- Dashboard Cards (Lighter Theme) --- */

/* Override gradient backgrounds to be white/clean */
[class*="bg-gradient-start-"] {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[class*="bg-gradient-start-"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(249, 115, 22, 0.1) !important;
  /* Orange hint on hover */
}

/* Text Colors in Cards */
.card p.text-primary-light {
  color: #6b7280 !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.card h6 {
  color: #111827;
  /* Dark black for numbers */
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 5px;
}

/* Icon Containers in Cards */
.card .rounded-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px !important;
  /* Softer square */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Specific Card Icon Colors */
.bg-cyan {
  background-color: rgba(6, 182, 212, 0.1) !important;
}

.bg-cyan iconify-icon {
  color: #06b6d4 !important;
}

.bg-success {
  background-color: rgba(34, 197, 94, 0.1) !important;
}

.bg-success iconify-icon {
  color: #22c55e !important;
}

.bg-warning {
  background-color: rgba(249, 115, 22, 0.1) !important;
  /* Use Orange for warning/business */
}

.bg-warning iconify-icon {
  color: var(--accent-color) !important;
}

.bg-info {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-info iconify-icon {
  color: #3b82f6 !important;
}

.bg-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-danger iconify-icon {
  color: #ef4444 !important;
}

/* --- Quick Actions Section --- */
.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 24px;
}

.card-header h5 {
  font-weight: 700;
  color: #111827;
}

/* Buttons in Quick Actions */
.btn {
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  /* Black */
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--accent-color) !important;
  /* Orange hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-success,
.btn-warning,
.btn-info {
  opacity: 0.9;
}

.btn-success:hover,
.btn-warning:hover,
.btn-info:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Table Enhancements (if any) */
.table thead th {
  background-color: #f9fafb;
  color: #4b5563;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.table tbody td {
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  height: 60px;
  /* Taller rows */
  vertical-align: middle;
}

/* --- Navbar Styling --- */
.navbar-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  padding: 16px 24px;
}

.navbar-search input {
  background-color: #f3f4f6 !important;
  border: 1px solid transparent !important;
  color: #1f2937 !important;
  border-radius: 8px !important;
  padding: 10px 16px;
  /* Adjust padding */
}

.navbar-search input:focus {
  background-color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* Navbar Icons */
.navbar-header iconify-icon {
  color: #6b7280;
  transition: color 0.2s;
}

.navbar-header iconify-icon.active {
  color: var(--accent-color);
}

.navbar-header iconify-icon:hover {
  color: var(--accent-color);
}

/* User Profile & Dropdowns */
.navbar-header .bg-neutral-200 {
  background-color: #f3f4f6 !important;
  /* Lighter gray for icon backgrounds */
  color: #4b5563;
}

.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  padding: 8px !important;
}

.dropdown-item {
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(249, 115, 22, 0.05) !important;
  color: var(--accent-color) !important;
}

.dropdown-item:hover iconify-icon {
  color: var(--accent-color) !important;
}

/* Scrollbar Clean up */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}