:root {
  --brand-navy: #0b3b60;
  --brand-navy-dark: #07253d;
  --brand-navy-light: #164e7a;
  --brand-cyan: #00a8cc;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-glow: rgba(0, 168, 204, 0.25);
  --brand-slate: #64748b;
  --brand-bg-light: #f8fafc;
}

/* Glassmorphism & Modern Shadows */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glow-cyan {
  box-shadow: 0 0 35px var(--brand-cyan-glow);
}

.gradient-brand-text {
  background: linear-gradient(135deg, #0b3b60 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .gradient-brand-text {
  background: linear-gradient(135deg, #38bdf8 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badge animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Hero abstract network background pattern */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(11, 59, 96, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dark .bg-grid-pattern {
  background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Kongre Hikayeleri (Instagram-Style Stories) */
.story-avatar-ring {
  background: linear-gradient(45deg, #00a8cc, #0b3b60, #38bdf8, #f59e0b);
  background-size: 300% 300%;
  padding: 3px;
  border-radius: 9999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: gradientShift 6s ease infinite;
}

.story-avatar-ring:hover {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(0, 168, 204, 0.4);
}

.story-avatar-ring.seen {
  background: #cbd5e1;
  animation: none;
}
.dark .story-avatar-ring.seen {
  background: #475569;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Story Player Fullscreen Modal */
.story-player-overlay {
  background: rgba(11, 19, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.story-player-container {
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 760px;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.story-progress-segment {
  background: rgba(255, 255, 255, 0.3);
  height: 3.5px;
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
}

.story-progress-fill {
  background: #ffffff;
  height: 100%;
  width: 0%;
  transition: width linear;
}

/* Print Friendly styles for certificates / proceedings */
@media print {
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
}


/* ========================================================
   BOOTSTRAP & VUEXY COMPATIBILITY LAYER FOR TAILWIND
   ======================================================== */

/* Grid & Layout Helpers */
.container {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; margin-top: calc(-1 * 1.5rem); }
.g-4 > * { padding-top: 1.5rem; }

.gy-4 { margin-top: calc(-1 * 1.5rem); }
.gy-4 > * { padding-top: 1.5rem; }

.col-12 { flex: 0 0 auto; width: 100%; }
.col-md-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
}

/* Flex utilities */
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
@media (min-width: 768px) {
  .d-md-flex { display: flex !important; }
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
}

.align-items-center { align-items: center !important; }
.align-content-center { align-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Spacing */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-nowrap { white-space: nowrap !important; }

/* Page Header Slide Banner */
#home-animation .home-slide {
  background: linear-gradient(135deg, #0b3b60 0%, #164e7a 50%, #07253d 100%);
  padding: 2.5rem 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

#home-animation .home-slide h1,
#home-animation .home-slide h4 {
  color: #ffffff !important;
}

#home-animation .home-slide h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

#home-animation .home-slide h4 {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #ffffff;
  background-clip: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.dark .card {
  background-color: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-header {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.dark .card-header {
  background-color: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 0.375rem;
}

.btn-md {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0.875rem;
}

.btn-primary {
  color: #fff;
  background-color: #0b3b60;
  border-color: #0b3b60;
}
.btn-primary:hover {
  background-color: #164e7a;
  border-color: #164e7a;
  color: #fff;
}

.btn-warning {
  color: #1e293b;
  background-color: #f59e0b;
  border-color: #f59e0b;
}
.btn-warning:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #fff;
}

.btn-success {
  color: #fff;
  background-color: #10b981;
  border-color: #10b981;
}
.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
  color: #fff;
}

.btn-danger {
  color: #fff;
  background-color: #ef4444;
  border-color: #ef4444;
}
.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.btn-info {
  color: #fff;
  background-color: #00a8cc;
  border-color: #00a8cc;
}
.btn-info:hover {
  background-color: #008ba8;
  border-color: #008ba8;
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: #64748b;
  border-color: #64748b;
}
.btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
  color: #fff;
}

.btn-outline-primary {
  color: #0b3b60;
  border-color: #0b3b60;
  background-color: transparent;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #0b3b60;
}
.dark .btn-outline-primary {
  color: #38bdf8;
  border-color: #38bdf8;
}
.dark .btn-outline-primary:hover {
  color: #0f172a;
  background-color: #38bdf8;
}

.btn-outline-secondary {
  color: #64748b;
  border-color: #cbd5e1;
  background-color: transparent;
}
.btn-outline-secondary:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

.btn-outline-warning {
  color: #d97706;
  border-color: #f59e0b;
  background-color: transparent;
}
.btn-outline-warning:hover {
  color: #fff;
  background-color: #f59e0b;
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}
.dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* List Groups */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.dark .list-group {
  border-color: #334155;
}

.list-group-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  color: #1e293b;
  text-decoration: none;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}

.dark .list-group-item {
  color: #e2e8f0;
  background-color: #0f172a;
  border-bottom-color: #1e293b;
}

.list-group-item:last-child {
  border-bottom: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.5rem;
}

.bg-label-primary { background-color: #e0f2fe !important; color: #0369a1 !important; }
.bg-label-success { background-color: #d1fae5 !important; color: #047857 !important; }
.bg-label-warning { background-color: #fef3c7 !important; color: #b45309 !important; }
.bg-label-danger { background-color: #fee2e2 !important; color: #b91c1c !important; }
.bg-label-info { background-color: #cffafe !important; color: #0e7490 !important; }
.bg-label-secondary { background-color: #f1f5f9 !important; color: #475569 !important; }

.dark .bg-label-primary { background-color: rgba(3, 105, 161, 0.2) !important; color: #38bdf8 !important; }
.dark .bg-label-success { background-color: rgba(4, 120, 87, 0.2) !important; color: #34d399 !important; }
.dark .bg-label-warning { background-color: rgba(180, 83, 9, 0.2) !important; color: #fbbf24 !important; }
.dark .bg-label-danger { background-color: rgba(185, 28, 28, 0.2) !important; color: #f87171 !important; }
.dark .bg-label-info { background-color: rgba(14, 116, 144, 0.2) !important; color: #22d3ee !important; }
.dark .bg-label-secondary { background-color: rgba(71, 85, 105, 0.2) !important; color: #94a3b8 !important; }

.bg-primary { background-color: #0b3b60 !important; color: #fff !important; }
.bg-success { background-color: #10b981 !important; color: #fff !important; }
.bg-warning { background-color: #f59e0b !important; color: #1e293b !important; }
.bg-danger { background-color: #ef4444 !important; color: #fff !important; }
.bg-info { background-color: #00a8cc !important; color: #fff !important; }

/* Alerts */
.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font-size: 0.8125rem;
}

.alert-primary { background-color: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.alert-success { background-color: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-warning { background-color: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background-color: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background-color: #ecfeff; border-color: #a5f3fc; color: #155e75; }
.alert-secondary { background-color: #f8fafc; border-color: #e2e8f0; color: #334155; }

.dark .alert-primary { background-color: rgba(3, 105, 161, 0.15); border-color: rgba(3, 105, 161, 0.3); color: #7dd3fc; }
.dark .alert-success { background-color: rgba(4, 120, 87, 0.15); border-color: rgba(4, 120, 87, 0.3); color: #6ee7b7; }
.dark .alert-warning { background-color: rgba(180, 83, 9, 0.15); border-color: rgba(180, 83, 9, 0.3); color: #fde68a; }
.dark .alert-danger { background-color: rgba(185, 28, 28, 0.15); border-color: rgba(185, 28, 28, 0.3); color: #fca5a5; }
.dark .alert-info { background-color: rgba(14, 116, 144, 0.15); border-color: rgba(14, 116, 144, 0.3); color: #67e8f9; }
.dark .alert-secondary { background-color: rgba(51, 65, 85, 0.2); border-color: rgba(51, 65, 85, 0.4); color: #cbd5e1; }

/* Accordion */
.accordion {
  border-radius: 1rem;
  overflow: hidden;
}

.accordion-item {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.dark .accordion-item {
  background-color: #0f172a;
  border-color: #1e293b;
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #1e293b;
  text-align: left;
  background-color: #ffffff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.dark .accordion-button {
  background-color: #0f172a;
  color: #f8fafc;
}

.dark .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed) {
  color: #0b3b60;
  background-color: #f0f9ff;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300a8cc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.dark .accordion-button:not(.collapsed) {
  color: #38bdf8;
  background-color: #1e293b;
  box-shadow: inset 0 -1px 0 #334155;
}

.accordion-body {
  padding: 1.25rem;
}

/* Collapse Utilities */
.collapse:not(.show) {
  display: none !important;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.collapse.show {
  display: block !important;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.modal.show, .modal.d-block {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem;
  pointer-events: none;
  max-width: 500px;
  width: 100%;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1140px; }

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  outline: 0;
  overflow: hidden;
}

.dark .modal-content {
  background-color: #0f172a;
  border-color: #1e293b;
  color: #f8fafc;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.dark .modal-header {
  border-bottom-color: #334155;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  gap: 0.5rem;
}

.dark .modal-footer {
  border-top-color: #334155;
}

/* Timeline (İşlem Geçmişi) */
ul.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem !important;
  margin: 0;
}

ul.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.65rem;
  width: 2px;
  background-color: #cbd5e1;
}

.dark ul.timeline::before {
  background-color: #334155;
}

ul.timeline > li {
  position: relative;
  margin-bottom: 1.5rem;
}

ul.timeline > li > span[style*="border-radius:50%"],
ul.timeline > li > span[style*="border-radius: 50%"] {
  position: absolute;
  left: -1.75rem !important;
  top: 0.25rem !important;
  width: 0.75rem !important;
  height: 0.75rem !important;
  border-radius: 50% !important;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(11, 59, 96, 0.1);
}

.dark ul.timeline > li > span[style*="border-radius:50%"],
.dark ul.timeline > li > span[style*="border-radius: 50%"] {
  border-color: #0f172a;
}

/* Typography Helpers */
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.small { font-size: 0.75rem !important; }
.fs-6 { font-size: 1rem !important; }
.fs-7 { font-size: 0.75rem !important; }
.text-muted { color: #64748b !important; }
.dark .text-muted { color: #94a3b8 !important; }
.text-dark { color: #0f172a !important; }
.dark .text-dark { color: #f8fafc !important; }
.text-primary { color: #0b3b60 !important; }
.dark .text-primary { color: #38bdf8 !important; }
.text-danger { color: #ef4444 !important; }
.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #00a8cc !important; }

/* Section Vertical Padding */
.section-py {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 640px) {
  .section-py {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (min-width: 1024px) {
  .section-py {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* ========================================================
   FORM CONTROLS & SELECT & CHECKBOX COMPATIBILITY
   ======================================================== */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.dark .form-label {
  color: #f8fafc;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #cbd5e1;
  appearance: none;
  border-radius: 0.875rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dark .form-control,
.dark .form-select {
  background-color: #0b1320;
  border-color: #334155;
  color: #f8fafc;
}

.form-control:focus,
.form-select:focus {
  color: #0f172a;
  background-color: #ffffff;
  border-color: #00a8cc;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 168, 204, 0.15);
}

.dark .form-control:focus,
.dark .form-select:focus {
  color: #ffffff;
  background-color: #0b1320;
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.2);
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-text {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.dark .form-text {
  color: #94a3b8;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.75em;
  margin-bottom: 0.125rem;
  position: relative;
}

.form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.175em;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid #cbd5e1;
  appearance: none;
  color-adjust: exact;
  border-radius: 0.35rem;
  float: left;
  margin-left: -1.75em;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.dark .form-check-input {
  background-color: #1e293b;
  border-color: #475569;
}

.form-check-input:checked {
  background-color: #00a8cc;
  border-color: #00a8cc;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
  color: #334155;
  font-size: 0.8125rem;
  cursor: pointer;
}

.dark .form-check-label {
  color: #cbd5e1;
}

/* Select2 Modern Tailwind Overrides */
.select2-container--default .select2-selection--multiple {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.875rem !important;
  min-height: 46px !important;
  padding: 4px 8px !important;
}

.dark .select2-container--default .select2-selection--multiple {
  background-color: #0b1320 !important;
  border-color: #334155 !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #00a8cc !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 168, 204, 0.15) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  border-radius: 0.5rem !important;
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
  margin-right: 6px !important;
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: rgba(3, 105, 161, 0.25) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

.select2-dropdown {
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.875rem !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.dark .select2-dropdown {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #00a8cc !important;
  color: #ffffff !important;
}

/* Tracked Changes / Diff Styling */
.diff-container del,
#diff-output-content del,
.paper-content-modal del {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  text-decoration: line-through !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
}

.diff-container ins,
#diff-output-content ins,
.paper-content-modal ins {
  background-color: #d1fae5 !important;
  color: #047857 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
}
