/* ========================================
   Modern CRM Design Customizations
   ======================================== */

/* Import Modern Google Font - Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Global Font Change to Modern Inter Font */
body,
html,
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preserve FontAwesome Icons Font Family */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* ========================================
   HEADER LOGO - Increased Size
   ======================================== */
#logo {
  height: 57px !important;
}

#logo img {
  height: 70px !important;
  max-height: 70px !important;
  width: auto !important;
}

#logo .logo-text {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
}

#header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
  border-bottom: none !important;
}

/* ========================================
   MODERN SIDEBAR DESIGN
   ======================================== */
.sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15) !important;
  border-right: none !important;
}

/* Sidebar User Profile Card - Modern Style */
.sidebar .sidebar-user-profile .profile {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 15px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.sidebar .sidebar-user-profile .profile:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.sidebar .sidebar-user-profile .profile span {
  color: #ffffff !important;
}

.sidebar .sidebar-user-profile .profile .tw-text-neutral-300 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Profile Image Styling */
.staff-profile-image-small {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
}

/* Menu Items - Modern Design */
.sidebar .nav.metis-menu > li > a {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 12px 5px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  margin: 4px 12px !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.2px;
}

.sidebar .nav.metis-menu > li > a:hover {
  background: rgba(102, 126, 234, 0.25) !important;
  color: #ffffff !important;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
}

.sidebar .nav.metis-menu > li.active > a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Menu Icons */
.sidebar .nav.metis-menu > li > a .menu-icon {
  font-size: 17px !important;
  margin-right: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  width: 24px;
  text-align: center;
}

.sidebar .nav.metis-menu > li.active > a .menu-icon {
  color: #ffffff !important;
}

/* Submenu Styling */
.sidebar .nav.metis-menu li ul.nav-second-level > li > a {
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 10px 20px 10px 56px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
  margin: 2px 12px !important;
}

.sidebar .nav.metis-menu li ul.nav-second-level > li > a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding-left: 60px !important;
}

.sidebar .nav.metis-menu li ul.nav-second-level > li.active > a {
  color: #ffffff !important;
  background: rgba(102, 126, 234, 0.3) !important;
  font-weight: 500 !important;
}

/* Badge Styling */
.sidebar .nav.metis-menu .badge {
  background: #667eea !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

/* Arrow Icons */
.sidebar .nav.metis-menu .fa.arrow {
  color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar .nav.metis-menu .fa.arrow:before {
  content: "\f104";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.sidebar .nav.metis-menu .active > a > .fa.arrow:before {
  content: "\f107";
}

/* ========================================
   HEADER SEARCH & ELEMENTS
   ======================================== */
#top_search #search_input {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

#top_search #search_input:focus {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

#top_search #search_input::placeholder {
  color: #64748b !important;
}

/* Header Navigation Items */
#header nav .nav > li > a {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

#header nav .nav > li > a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Menu Button */
.hide-menu {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hide-menu:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* ========================================
   SCROLLBAR STYLING - Modern Look
   ======================================== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  #logo {
    height: 60px !important;
  }

  #logo img {
    height: 45px !important;
  }

  .sidebar .nav.metis-menu > li > a {
    font-size: 14px !important;
  }
}

/* ========================================
   ADDITIONAL POLISH
   ======================================== */
/* Dropdown Menus */
.dropdown-menu {
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.dropdown-menu > li > a {
  font-size: 14px !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu > li > a:hover {
  background: #f8fafc !important;
  color: #667eea !important;
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}
