/*
============================================
CUSTOM THEME ENHANCEMENTS
Enhanced Contrast & Vibrancy
============================================
*/

/* ==========================================
   CORE TEXT & HEADINGS - More Contrast
========================================== */
body {
  color: #2c3e50 !important; /* Darker, more readable text (was #526066) */
  font-weight: 400 !important; /* Slightly heavier */
}

h1, h2, h3, h4, h5, h6 {
  color: #2c3e50 !important; /* Darker headings (was #455a64) */
  font-weight: 500 !important; /* More weight */
}

/* Links */
a {
  color: #0d8abf !important; /* More vibrant blue (was #1586b0) */
}

a:hover, a:focus {
  color: #0ea5e9 !important; /* Brighter hover */
}

a.link {
  color: #2c3e50 !important;
}
a.link:hover, a.link:focus {
  color: #0ea5e9 !important; /* More vibrant (was #20aee3) */
}

/* ==========================================
   PRIMARY THEME COLOR - More Vibrant Blue
========================================== */
.text-themecolor,
.text-info,
.text-primary {
  color: #0ea5e9 !important; /* More vibrant blue (was #20aee3) */
}

.bg-info,
.bg-primary {
  background-color: #0ea5e9 !important; /* More vibrant blue */
}

.btn-info,
.btn-primary {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
}

.btn-info:hover,
.btn-primary:hover {
  background: #0284c7 !important; /* Darker on hover */
  border-color: #0284c7 !important;
}

.label-info,
.badge-info {
  background-color: #0ea5e9 !important;
}

/* ==========================================
   STATUS COLORS - More Vibrant & Contrast
========================================== */

/* Success - More vibrant green */
.text-success,
.text-green {
  color: #10b981 !important; /* More vibrant (was #24d2b5) */
}

.bg-success,
.bg-green {
  background-color: #10b981 !important;
}

.btn-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

.btn-success:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

.label-success,
.badge-success {
  background-color: #10b981 !important;
}

/* Warning - More vibrant orange */
.text-warning,
.text-orange {
  color: #f97316 !important; /* More vibrant (was #ff9041) */
}

.bg-warning,
.bg-orange {
  background-color: #f97316 !important;
}

.btn-warning {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}

.btn-warning:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
}

.label-warning,
.badge-warning {
  background-color: #f97316 !important;
}

/* Danger - More vibrant red */
.text-danger,
.text-red {
  color: #ef4444 !important; /* More vibrant (was #ff5c6c) */
}

.bg-danger,
.bg-red {
  background-color: #ef4444 !important;
}

.btn-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.label-danger,
.badge-danger {
  background-color: #ef4444 !important;
}

/* Purple - More vibrant */
.text-purple {
  color: #8b5cf6 !important; /* More vibrant (was #7460ee) */
}

.bg-purple {
  background-color: #8b5cf6 !important;
}

.label-purple,
.badge-purple {
  background-color: #8b5cf6 !important;
}

/* Cyan/Info - More vibrant */
.text-cyan {
  color: #06b6d4 !important; /* More vibrant (was #56c0d8) */
}

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

/* ==========================================
   SIDEBAR & NAVIGATION - Better Contrast
========================================== */
.sidebar-nav ul li a {
  color: #cbd5e1 !important; /* Lighter text in dark sidebar */
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  color: #ffffff !important; /* Pure white on active */
  background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-nav ul li a i {
  color: #cbd5e1 !important;
}

.sidebar-nav ul li a:hover i,
.sidebar-nav ul li a.active i {
  color: #0ea5e9 !important; /* Vibrant blue icon */
}

/* ==========================================
   CARDS & PANELS - Better Borders
========================================== */
.card {
  border: 1px solid #e2e8f0 !important; /* More visible border */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   TABLES - Better Contrast
========================================== */
.table thead th {
  color: #1e293b !important; /* Darker header */
  font-weight: 600 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.table tbody td {
  color: #334155 !important; /* Darker text */
  border-bottom: 1px solid #f1f5f9 !important;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc !important; /* Subtle hover */
}

/* ==========================================
   BUTTONS - More Vibrant
========================================== */
.btn {
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.btn-default,
.btn-secondary {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

.btn-default:hover,
.btn-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* ==========================================
   LABELS & BADGES - More Vibrant
========================================== */
.label,
.badge {
  font-weight: 500 !important;
  padding: 0.35em 0.65em !important;
}

.label-default,
.badge-default {
  background-color: #64748b !important; /* More contrast (was lighter gray) */
  color: #ffffff !important;
}

/* ==========================================
   FORMS - Better Visibility
========================================== */
.form-control {
  border: 1px solid #cbd5e1 !important; /* More visible border */
  color: #1e293b !important; /* Darker text */
}

.form-control:focus {
  border-color: #0ea5e9 !important; /* Vibrant blue focus */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.form-control::placeholder {
  color: #94a3b8 !important; /* More visible placeholder */
}

/* Select boxes */
select.form-control {
  color: #1e293b !important;
}

/* ==========================================
   ICONS - More Visible
========================================== */
.mdi,
.ti,
.sl-icon {
  opacity: 1 !important; /* Full opacity */
}

/* Action icons */
.list-table-action i {
  color: #64748b !important; /* More visible (was lighter) */
}

.list-table-action i:hover {
  color: #0ea5e9 !important; /* Vibrant blue on hover */
}

/* ==========================================
   BREADCRUMBS - Better Contrast
========================================== */
.breadcrumb {
  background-color: transparent !important;
}

.breadcrumb-item {
  color: #64748b !important; /* More visible */
}

.breadcrumb-item.active {
  color: #1e293b !important; /* Darker active */
  font-weight: 500 !important;
}

/* ==========================================
   TABS - Better Visibility
========================================== */
.nav-tabs .nav-link {
  color: #64748b !important; /* More visible */
  font-weight: 500 !important;
}

.nav-tabs .nav-link:hover {
  color: #0ea5e9 !important;
}

.nav-tabs .nav-link.active {
  color: #0ea5e9 !important;
  border-bottom-color: #0ea5e9 !important;
  font-weight: 600 !important;
}

/* ==========================================
   STATUS LABELS - More Vibrant
========================================== */
.label-outline-info {
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
}

.label-outline-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.label-outline-warning {
  border-color: #f97316 !important;
  color: #f97316 !important;
}

.label-outline-danger {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* ==========================================
   PROGRESS BARS - More Vibrant
========================================== */
.progress-bar {
  background-color: #0ea5e9 !important;
}

.progress-bar-success {
  background-color: #10b981 !important;
}

.progress-bar-warning {
  background-color: #f97316 !important;
}

.progress-bar-danger {
  background-color: #ef4444 !important;
}

/* ==========================================
   ALERTS - Better Contrast
========================================== */
.alert-info {
  background-color: #e0f2fe !important;
  border-color: #0ea5e9 !important;
  color: #0c4a6e !important;
}

.alert-success {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #064e3b !important;
}

.alert-warning {
  background-color: #ffedd5 !important;
  border-color: #f97316 !important;
  color: #7c2d12 !important;
}

.alert-danger {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #7f1d1d !important;
}

/* ==========================================
   DROPDOWN MENUS - Better Contrast
========================================== */
.dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item {
  color: #334155 !important; /* Darker text */
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8fafc !important;
  color: #0ea5e9 !important;
}

/* ==========================================
   MODALS - Better Visibility
========================================== */
.modal-header {
  background-color: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.modal-title {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.modal-footer {
  border-top: 1px solid #e2e8f0 !important;
}

/* ==========================================
   TOPBAR - Better Contrast
========================================== */
.topbar {
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.topbar .navbar-nav .nav-link {
  color: #64748b !important;
}

.topbar .navbar-nav .nav-link:hover {
  color: #0ea5e9 !important;
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.text-muted {
  color: #64748b !important; /* More visible than original */
}

.text-light {
  color: #94a3b8 !important;
}

.text-dark {
  color: #1e293b !important;
}

.bg-light {
  background-color: #f8fafc !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.border {
  border-color: #e2e8f0 !important;
}

/* ==========================================
   LOADING & SPINNERS
========================================== */
.spinner-border {
  border-color: #e2e8f0 !important;
  border-right-color: #0ea5e9 !important;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
========================================== */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  
  .btn {
    font-size: 13px;
  }
}

/* ==========================================
   MODERN LOGIN PAGE STYLING
   Purple/Violet Theme - Professional & Interactive
========================================== */

/* Login card container */
.logged-out body #main-wrapper .login-box {
  width: 420px;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  padding: 0;
  z-index: 4;
  position: relative;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: loginCardSlideIn 0.5s ease-out;
}

@keyframes loginCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Purple gradient header wave */
.logged-out body #main-wrapper .login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  border-radius: 24px 24px 50% 50% / 24px 24px 30% 30%;
}

/* Form container padding */
.logged-out body #main-wrapper .login-box form {
  padding: 140px 35px 35px 35px;
  position: relative;
}

/* Title styling */
.logged-out body #main-wrapper .login-box .title {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.logged-out body #main-wrapper .login-box .box-title {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form group spacing */
.logged-out body #main-wrapper .login-box .form-group {
  margin-bottom: 20px;
}

/* Input field styling */
.logged-out body #main-wrapper .login-box .form-control {
  height: 52px;
  border-radius: 12px !important;
  border: 2px solid #e5e7eb !important;
  padding: 12px 16px 12px 48px !important;
  font-size: 15px !important;
  color: #1f2937 !important;
  background-color: #f9fafb !important;
  transition: all 0.3s ease !important;
}

.logged-out body #main-wrapper .login-box .form-control:focus {
  border-color: #a855f7 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1) !important;
}

.logged-out body #main-wrapper .login-box .form-control::placeholder {
  color: #9ca3af !important;
}

/* Input icons */
.logged-out body #main-wrapper .login-box .form-group .col-xs-12 {
  position: relative;
}

.logged-out body #main-wrapper .login-box .form-group .col-xs-12::before {
  font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
  font-weight: 400;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  z-index: 1;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* Email icon */
.logged-out body #main-wrapper .login-box .form-group:nth-child(2) .col-xs-12::before {
  content: '\f0e0';
}

/* Password icon */
.logged-out body #main-wrapper .login-box .form-group:nth-child(3) .col-xs-12::before {
  content: '\f023';
}

.logged-out body #main-wrapper .login-box .form-group .col-xs-12:focus-within::before {
  color: #a855f7;
}

/* Checkbox styling */
.logged-out body #main-wrapper .login-box .custom-control {
  padding-left: 28px;
}

.logged-out body #main-wrapper .login-box .custom-control-indicator {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background-color: #f9fafb;
  top: 2px;
}

.logged-out body #main-wrapper .login-box .custom-control-input:checked ~ .custom-control-indicator {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: #7c3aed;
}

.logged-out body #main-wrapper .login-box .custom-control-description {
  color: #6b7280 !important;
  font-size: 14px;
  font-weight: 500;
}

/* Forgot password link */
.logged-out body #main-wrapper .login-box #to-recover {
  color: #7c3aed !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logged-out body #main-wrapper .login-box #to-recover:hover {
  color: #a855f7 !important;
  text-decoration: underline;
}

/* Submit button - Purple gradient */
.logged-out body #main-wrapper .login-box #loginSubmitButton,
.logged-out body #main-wrapper .login-box .btn-info.btn-lg.btn-block {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  height: 52px;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.logged-out body #main-wrapper .login-box #loginSubmitButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.logged-out body #main-wrapper .login-box #loginSubmitButton:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45) !important;
  transform: translateY(-2px);
}

.logged-out body #main-wrapper .login-box #loginSubmitButton:hover::before {
  left: 100%;
}

.logged-out body #main-wrapper .login-box #loginSubmitButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35) !important;
}/* Sign up link section */
.logged-out body #main-wrapper .login-box .form-group.m-b-0 {
  margin-top: 25px !important;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.logged-out body #main-wrapper .login-box .form-group.m-b-0 .col-sm-12 {
  color: #6b7280;
  font-size: 14px;
}

.logged-out body #main-wrapper .login-box .text-info {
  color: #7c3aed !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.logged-out body #main-wrapper .login-box .text-info:hover {
  color: #a855f7 !important;
}

/* Logo area styling */
.logged-out body #main-wrapper .login-logo {
  padding-bottom: 25px;
  animation: logoFadeIn 0.6s ease-out;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logged-out body #main-wrapper .login-logo img {
  max-height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Background enhancement for login page */
.logged-out body {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%) !important;
}

/* Login images animation */
.logged-out body .login-background .x-left {
  animation: slideInLeft 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .logged-out body #main-wrapper .login-box {
    width: 100%;
    margin: 0 15px;
    border-radius: 20px;
  }
  
  .logged-out body #main-wrapper .login-box form {
    padding: 130px 25px 30px 25px;
  }
  
  .logged-out body #main-wrapper .login-box .form-control {
    height: 48px;
    font-size: 14px !important;
  }
  
  .logged-out body #main-wrapper .login-box #loginSubmitButton {
    height: 48px;
    font-size: 15px !important;
  }
}

/* Forgot password page styling */
.logged-out body #main-wrapper .login-box h3.box-title {
  color: #1f2937 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  margin-bottom: 8px;
}

.logged-out body #main-wrapper .login-box h3.box-title + .text-center small {
  color: #6b7280;
  font-size: 14px;
}
