/* Professional Theme Overrides - Navy Blue & Modern Design */

/* Root Variables Override */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --sidebar-bg: #0f172a;
  --sidebar-bg-light: #1e293b;
  --topbar-bg: #ffffff;
  --accent: #2563eb;
}

/* Sidebar Professional Theme */
.bg-gradient-primary {
  background-color: #0f172a !important;
  background-image: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
  background-size: cover;
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Brand */
.sidebar .sidebar-brand {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff !important;
  border-bottom: 2px solid #3b82f6;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar .sidebar-brand-text {
  color: #ffffff !important;
}

/* Sidebar Divider */
.sidebar-dark hr.sidebar-divider {
  border-top: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Sidebar Heading */
.sidebar-dark .sidebar-heading {
  color: #94a3b8 !important;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sidebar Nav Links */
.sidebar-dark .nav-item .nav-link {
  color: #cbd5e1 !important;
  padding: 0.9rem 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-weight: 500;
}

.sidebar-dark .nav-item .nav-link i {
  color: #94a3b8 !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sidebar-dark .nav-item .nav-link:hover {
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.15) !important;
  border-left: 3px solid #3b82f6;
  padding-left: 1.2rem;
}

.sidebar-dark .nav-item .nav-link:hover i {
  color: #3b82f6 !important;
  transform: scale(1.1);
}

/* Active Sidebar Item */
.sidebar-dark .nav-item.active .nav-link {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, transparent 100%) !important;
  border-left: 3px solid #2563eb;
  font-weight: 600;
}

.sidebar-dark .nav-item.active .nav-link i {
  color: #3b82f6 !important;
}

/* Sidebar Toggle Button */
.sidebar-dark #sidebarToggle {
  background-color: rgba(37, 99, 235, 0.2) !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-dark #sidebarToggle::after {
  color: #94a3b8 !important;
}

.sidebar-dark #sidebarToggle:hover {
  background-color: rgba(37, 99, 235, 0.3) !important;
}

/* Topbar Professional Theme */
.topbar {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid #e5e7eb;
}

.topbar .nav-item .nav-link {
  color: #475569 !important;
  font-weight: 500;
}

.topbar .nav-item .nav-link:hover {
  color: #2563eb !important;
}

/* Topbar Dropdown */
.topbar .dropdown-menu {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.topbar .dropdown-item {
  color: #475569;
  font-weight: 500;
  transition: all 0.2s ease;
}

.topbar .dropdown-item:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

.topbar .dropdown-item i {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.topbar .dropdown-item:hover i {
  color: #2563eb;
}

/* User Profile in Topbar */
.topbar .nav-item .text-gray-600 {
  color: #475569 !important;
  font-weight: 600;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:active,
.btn-primary:focus {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Secondary Button */
.btn-secondary {
  background: #64748b !important;
  border: none !important;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #475569 !important;
}

/* Content Wrapper */
#content-wrapper {
  background-color: #f8fafc !important;
}

#content {
  background-color: #f8fafc !important;
}

/* Cards */
.card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 2px solid #e5e7eb !important;
  color: #1e293b !important;
  font-weight: 700;
  padding: 1rem 1.25rem;
}

.card-body {
  background: #ffffff;
}

/* Tables */
.table {
  color: #1e293b;
}

.table thead th {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
  font-weight: 700;
  border-color: #cbd5e1;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.9rem 0.75rem;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

.table-bordered {
  border-color: #e5e7eb;
}

.table-bordered td,
.table-bordered th {
  border-color: #e5e7eb;
}

/* Modal */
.modal-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.modal-header .close {
  color: white;
  opacity: 0.8;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 700;
}

.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  /* padding: 0.6rem 0.75rem; */
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Badges */
.badge-primary {
  background-color: #2563eb !important;
  font-weight: 600;
}

.badge-success {
  background-color: #10b981 !important;
  font-weight: 600;
}

.badge-danger {
  background-color: #ef4444 !important;
  font-weight: 600;
}

.badge-warning {
  background-color: #f59e0b !important;
  font-weight: 600;
}

.badge-info {
  background-color: #3b82f6 !important;
  font-weight: 600;
}

/* Page Heading */
.h3, h3 {
  color: #1e293b !important;
  font-weight: 700;
}

/* Text Colors */
.text-primary {
  color: #2563eb !important;
}

.text-gray-800 {
  color: #1e293b !important;
}

.text-gray-600 {
  color: #475569 !important;
}

.text-gray-500 {
  color: #64748b !important;
}

/* Alert */
.alert-success {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #3b82f6;
  color: #1e3a8a;
  border-left: 4px solid #3b82f6;
}

/* Pagination */
.pagination .page-link {
  color: #2563eb;
  border-color: #e5e7eb;
}

.pagination .page-link:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e40af;
}

.pagination .page-item.active .page-link {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sidebar {
    box-shadow: none;
  }
  
  .topbar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Sidebar collapsed state */
.sidebar.toggled .sidebar-brand {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* Additional Professional Touches */
.shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-sm {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Border Colors */
.border-left-primary {
  border-left-color: #2563eb !important;
}

.border-left-success {
  border-left-color: #10b981 !important;
}

.border-left-info {
  border-left-color: #3b82f6 !important;
}

.border-left-warning {
  border-left-color: #f59e0b !important;
}

.border-left-danger {
  border-left-color: #ef4444 !important;
}
/* Form Control Select Border */
select.form-control {
  border: 1px solid #d1d5db !important;
}