/* 
  IIM Jammu Enterprise Admin Dashboard Theme Styles
  Theme Palette (Dual-Tone Blue Signature): 
  - Primary Cyan/Ocean Blue: #027dc4
  - Deep Navy Royal Blue: #273a8f
*/

:root {
  --iimj-primary: #027dc4;
  --iimj-navy: #273a8f;
  --iimj-primary-light: #EBF5FB;
  --iimj-navy-light: #EEF1F8;
  --iimj-bg: #F4F6F9;
  --iimj-card-bg: #FFFFFF;
  --iimj-text-dark: #1E293B;
  --iimj-text-muted: #64748B;
  --iimj-border: #E2E8F0;
  --iimj-shadow: 0 4px 20px -2px rgba(2, 125, 196, 0.10), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --iimj-shadow-hover: 0 12px 28px -4px rgba(39, 58, 143, 0.20), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

/* Base Body Overrides */
body {
  background-color: var(--iimj-bg);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--iimj-text-dark);
}

/* Nav Header & Brand Logo */
.nav-header {
  background: linear-gradient(135deg, #273a8f 0%, #027dc4 100%) !important;
  border-bottom: 2px solid #027dc4;
}

.header {
  background: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(39, 58, 143, 0.06) !important;
  border-bottom: 1px solid var(--iimj-border);
}

/* Top Header & Breadcrumb Container */
.iimj-page-banner {
  background: linear-gradient(135deg, #273a8f 0%, #027dc4 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(39, 58, 143, 0.25);
  border-left: 5px solid #027dc4;
}

.iimj-page-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(2, 125, 196, 0.3) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.iimj-page-banner h3 {
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.iimj-badge-gold {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Stat Cards */
.iimj-stat-card {
  background: var(--iimj-card-bg);
  border: 1px solid var(--iimj-border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--iimj-shadow);
  height: 100%;
}

.iimj-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iimj-shadow-hover);
}

.iimj-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #273a8f 0%, #027dc4 100%);
  opacity: 0.85;
}

.iimj-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--iimj-text-muted);
}

.iimj-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--iimj-navy);
  line-height: 1.2;
}

.iimj-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.iimj-stat-icon.gold {
  background: #FEF3C7;
  color: #D97706;
}

.iimj-stat-icon.maroon {
  background: #EBF5FB;
  color: #027dc4;
}

.iimj-stat-icon.info {
  background: #E0F2FE;
  color: #0284C7;
}

.iimj-stat-icon.success {
  background: #DCFCE7;
  color: #16A34A;
}

.iimj-stat-icon.warning {
  background: #FFEDD5;
  color: #EA580C;
}

.iimj-stat-icon.danger {
  background: #FEE2E2;
  color: #DC2626;
}

.iimj-trend-up {
  color: #16A34A;
  font-weight: 600;
  font-size: 0.8rem;
}

.iimj-trend-down {
  color: #DC2626;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Custom Table Design */
.iimj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.iimj-table thead th {
  background: #F8FAFC;
  color: var(--iimj-navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--iimj-border);
}

.iimj-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--iimj-border);
  font-size: 0.875rem;
  color: var(--iimj-text-dark);
}

.iimj-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* Modern Card Containers */
.iimj-card {
  background: var(--iimj-card-bg);
  border-radius: 16px;
  border: 1px solid var(--iimj-border);
  box-shadow: var(--iimj-shadow);
  overflow: hidden;
}

.iimj-card-header {
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--iimj-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iimj-card-title {
  font-weight: 700;
  color: var(--iimj-navy);
  margin: 0;
  font-size: 1.05rem;
}

/* Custom Buttons */
.btn-iimj-primary {
  background: linear-gradient(135deg, #027dc4 0%, #273a8f 100%);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2, 125, 196, 0.25);
  transition: all 0.25s ease;
}

.btn-iimj-primary:hover {
  background: linear-gradient(135deg, #273a8f 0%, #027dc4 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 58, 143, 0.35);
}

.btn-iimj-gold {
  background: linear-gradient(135deg, #027dc4 0%, #273a8f 100%);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2, 125, 196, 0.25);
}

.btn-iimj-gold:hover {
  background: linear-gradient(135deg, #273a8f 0%, #027dc4 100%);
  color: #FFFFFF;
}

.btn-iimj-outline {
  border: 1.5px solid #027dc4;
  color: #027dc4;
  background: transparent;
  font-weight: 600;
}

.btn-iimj-outline:hover {
  background: #027dc4;
  color: #FFFFFF;
}

/* Custom Badges */
.badge-iimj-gold {
  background: #EBF5FB;
  color: #027dc4;
  font-weight: 700;
  border: 1px solid rgba(2, 125, 196, 0.3);
}

.badge-iimj-maroon {
  background: #EBF5FB;
  color: #027dc4;
  font-weight: 700;
}

/* Timeline Components */
.iimj-timeline {
  position: relative;
  padding-left: 2rem;
}

.iimj-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--iimj-border);
}

.iimj-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.iimj-timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #027dc4;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px rgba(2, 125, 196, 0.3);
}

/* Programme Card Grid */
.iimj-prog-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--iimj-border);
  box-shadow: var(--iimj-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.iimj-prog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--iimj-shadow-hover);
  border-color: #027dc4;
}

.iimj-prog-header {
  background: linear-gradient(135deg, #273a8f 0%, #027dc4 100%);
  color: #FFFFFF;
  padding: 1.5rem;
}

.iimj-prog-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.iimj-prog-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.iimj-prog-footer {
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid var(--iimj-border);
}

/* Dynamic Filter Chips */
.iimj-chip-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.iimj-chip {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--iimj-border);
  background: #FFFFFF;
  color: var(--iimj-text-muted);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iimj-chip:hover, .iimj-chip.active {
  background: #027dc4;
  color: #FFFFFF;
  border-color: #027dc4;
  box-shadow: 0 4px 10px rgba(2, 125, 196, 0.2);
}

/* Upload Dropzone Box */
.iimj-dropzone {
  border: 2px dashed #027dc4;
  background: #EBF5FB;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.iimj-dropzone:hover {
  background: #D4E6F1;
  border-color: #273a8f;
}

.iimj-dropzone-icon {
  font-size: 2.5rem;
  color: #027dc4;
  margin-bottom: 0.75rem;
}

/* AI Match Relevance Badges */
.iimj-ai-badge {
  background: linear-gradient(135deg, #027dc4 0%, #273a8f 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(2, 125, 196, 0.25);
}

.iimj-quick-action {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--iimj-border);
  background: #FFFFFF;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  color: var(--iimj-text-dark);
  text-decoration: none;
  font-weight: 600;
}

.iimj-quick-action:hover {
  border-color: #027dc4;
  transform: translateY(-2px);
  box-shadow: var(--iimj-shadow);
  color: #027dc4;
  background: rgba(255, 255, 255, 0.2);
}

.iimj-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #027dc4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.85rem;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

/* Loading Skeleton Loader Effects */
.iimj-skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
  display: inline-block;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Sidebar Branding & Active Highlight */
.dlabnav .metismenu > li.mm-active > a {
  background: linear-gradient(90deg, rgba(2, 125, 196, 0.12) 0%, rgba(2, 125, 196, 0) 100%) !important;
  color: #027dc4 !important;
  border-left: 4px solid #027dc4;
}

.dlabnav .metismenu > li.mm-active > a i {
  color: #027dc4 !important;
}

/* Progress Bars */
.progress-bar.bg-danger,
.progress-bar.bg-warning,
.progress-bar.bg-info,
.progress-bar.bg-success,
.progress-bar.bg-primary {
  background-color: #027dc4 !important;
}

/* ========================================================= */
/* ENHANCED SPACIOUS SIDEBAR WIDTH & RESPONSIVE LAYOUT RULES */
/* ========================================================= */
@media (min-width: 768px) {
  .dlabnav {
    width: 255px !important;
  }
  .nav-header {
    width: 255px !important;
  }
  .content-body {
    margin-left: 255px !important;
  }
  .header {
    padding-left: 255px !important;
  }
}

.dlabnav .metismenu a {
  font-size: 0.875rem !important;
  padding: 0.75rem 1.1rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.dlabnav .metismenu > li > a i {
  font-size: 1.25rem !important;
  margin-right: 0.65rem !important;
}

.dlabnav .metismenu ul a {
  padding-left: 2.4rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* AI Insights Hero Banner High Contrast */
.iimj-ai-card {
  background: linear-gradient(135deg, #1E293B 0%, #273A8F 100%) !important;
  border-radius: 18px !important;
  padding: 1.5rem 1.75rem !important;
  color: #FFFFFF !important;
  border-left: 5px solid #027DC4 !important;
  box-shadow: 0 10px 30px rgba(39, 58, 143, 0.25) !important;
}

.iimj-ai-card h5, .iimj-ai-card strong, .iimj-ai-card span {
  color: #FFFFFF !important;
}

.iimj-ai-card .text-white-50 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.iimj-ai-pulse {
  width: 9px;
  height: 9px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Page Banner Glassmorphism Action Buttons */
.iimj-banner-btn-light {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}
.iimj-banner-btn-light:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.iimj-banner-btn-accent {
  background: #FFFFFF !important;
  color: #027DC4 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease;
}
.iimj-banner-btn-accent:hover {
  background: #F8FAFC !important;
  color: #273A8F !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.iimj-banner-btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  transition: all 0.25s ease;
}
.iimj-banner-btn-outline:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* ========================================================= */
/* FORM SELECT & NICE-SELECT OVERLAP & TRUNCATION FIXES     */
/* ========================================================= */
.nice-select {
  position: relative !important;
  width: 100% !important;
  float: none !important;
  height: 42px !important;
  line-height: 40px !important;
  padding-left: 14px !important;
  padding-right: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #E2E8F0 !important;
  background-color: #F8FAFC !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  box-shadow: none !important;
}

.nice-select .current {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 88% !important;
  font-weight: 600 !important;
}

.nice-select::after {
  right: 14px !important;
  margin-top: -3px !important;
  border-bottom: 2px solid #027dc4 !important;
  border-right: 2px solid #027dc4 !important;
}

.nice-select .list {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  margin-top: 4px !important;
  padding: 6px 0 !important;
  max-height: 220px !important;
  overflow-y: auto !important;
}

.nice-select.open .list {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nice-select .option {
  padding: 8px 14px !important;
  min-height: 36px !important;
  line-height: 20px !important;
  font-size: 0.85rem !important;
  color: #1E293B !important;
  font-weight: 500 !important;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: #EBF5FB !important;
  color: #027DC4 !important;
  font-weight: 600 !important;
}

.form-select {
  width: 100% !important;
  height: 42px !important;
  padding: 0.45rem 2.2rem 0.45rem 0.85rem !important;
  border-radius: 8px !important;
  border: 1px solid #E2E8F0 !important;
  background-color: #F8FAFC !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  text-overflow: ellipsis !important;
}

.bootstrap-select .dropdown-toggle {
  width: 100% !important;
  border-radius: 8px !important;
  height: 42px !important;
}

.btn-group .btn {
  white-space: nowrap !important;
}
