@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);


:root {
  /* Core */
  --primary: #1F6D9A;
  --secondary: #E4EDF3;

  /* Background layers */
  --background: #F4F5F8;
  --surface: #FFFFFF;

  /* Semantic */
  --success: #DDF0E6;
  --warning: #FBE6D5;
  --error: #FEF2F2;

  /* Text */
  --text-main: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-disabled: #9EA3AE;

  /* Borders */
  --border: #EFEFEF;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  background: var(--background);
  color: var(--text-main);
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Global sizing */
label,
.form-label,
.form-control,
.form-select,
.btn,
.nav-link,
body,
.table,
input,
select,
textarea {
  font-size: 12px !important;
}

a {
  color: var(--primary);
}

a:hover {
  color: #18567a;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  font-weight: 600;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.card-body {
  overflow: visible;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #18567a;
  border-color: #18567a;
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #d5e4ee;
  border-color: #d5e4ee;
  color: var(--primary);
}

.form-control, .form-select {
  border-color: var(--border);
}

.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.15rem rgba(31, 109, 154, 0.25);
  border-color: var(--primary);
}

/* Attachment field */
.attachment-control {
  max-width: 520px;
}

.attachment-display {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f5f6f8 !important;
  border-color: #e7ebf0 !important;
}

.attachment-control > :first-child {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}

.attachment-control > :last-child {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

.attachment-control .btn {
  width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.attachment-control .btn i {
  font-size: 14px;
  line-height: 1;
}

.attachment-field.has-existing:not(.is-deleting):not(.has-new-file) .attachment-upload-btn {
  display: none !important;
}

.attachment-field.is-deleting .attachment-download-btn {
  display: none !important;
}

.attachment-field.has-new-file .attachment-display {
  background: var(--success) !important;
  border-color: #c2e3d2 !important;
}

.attachment-field.is-deleting .attachment-display {
  background: var(--error) !important;
  border-color: #f7c2c2 !important;
  text-decoration: line-through;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.table thead th {
  background: var(--secondary);
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.table td, .table th {
  border-color: var(--border);
}

.alert-success {
  background: var(--success);
  border-color: #c2e3d2;
  color: #1f6d45;
}

.alert-warning {
  background: var(--warning);
  border-color: #f6cfb1;
  color: #a2550b;
}

.alert-danger, .alert-error {
  background: var(--error);
  border-color: #f7c2c2;
  color: #a52929;
}

.datatable.dataTable {
  width: 100% !important;
}

.datatable-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.datatable-search {
  margin-bottom: 12px;
}

.datatable-search .form-control {
  background: #f5f6f8;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
}

.datatable th {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.datatable td {
  border-top: none;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  padding: 12px 10px;
}

.dataTables_length select {
  display: inline-block;
  width: auto;
  margin-left: 6px;
}

.dataTables_paginate .paginate_button {
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-secondary) !important;
  border-radius: 8px !important;
  margin-left: 4px;
  padding: 6px 10px;
}

.dataTables_paginate .paginate_button.current {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.dataTables_paginate {
  margin-top: 8px !important;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 0.85em;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: #f8f9fb;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 8px 12px 20px;
}

.logo-link {
  display: inline-block;
  width: 180px;
  height: 46px;
  background: url(../images/procurefin-logo.svg) center/contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.app-shell.sidebar-collapsed .app-sidebar {
  padding: 16px 8px;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding: 10px 8px;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-link span {
  display: none;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.sidebar-nav .nav-link span {
  white-space: nowrap;
}

.sidebar-nav .nav-link i {
  font-size: 18px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background: #e6edf5;
  color: var(--primary);
}

.sidebar-toggle-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding-left: 4px;
}

.app-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 170px;
  height: 42px;
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.icon-btn:hover {
  color: var(--primary);
  border-color: #cfd7e2;
}

.user-menu .dropdown-item {
  padding: 10px 12px;
  font-weight: 500;
}

.user-menu .dropdown-item i {
  font-size: 18px;
  color: var(--text-secondary);
}

.user-menu .btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 500;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 11px;
}

.app-content {
  padding: 24px;
  background: #f4f5f8;
  min-height: 0;
}

.app-footer {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #7c7f86;
  width: 100%;
}

/* Auth layout */
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0f4c8c url(../images/auth-background.svg) center/cover no-repeat fixed;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.auth-waves::before,
.auth-waves::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.auth-waves::before {
  background-image: url(data:image/svg+xml,%3Csvg width='1600' height='700' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop stop-color='%23ffffff' stop-opacity='0.15' offset='0%25'/%3E%3Cstop stop-color='%23ffffff' stop-opacity='0' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 420c120-40 240-40 360 0s240 40 360 0 240-40 360 0 240 40 360 0 120-40 160-60v400H0z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M0 520c120-60 240-60 360 0s240 60 360 0 240-60 360 0 240 60 360 0 120-60 160-90v300H0z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.25'/%3E%3C/svg%3E);
  background-size: cover;
  background-position: center;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  padding: 32px 16px 24px;
}

.auth-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 32px 32px;
  border: 1px solid var(--border);
  width: min(960px, 100%);
}

.auth-card-wide {
  width: min(1100px, 100%);
}

.auth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-logo {
  display: inline-block;
  width: 180px;
  height: 46px;
  background: url(../images/procurefin-logo.svg) center/contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #1f1f1f;
}

.auth-form {
  max-width: 800px;
  margin: 0 auto;
}

.auth-input .form-control {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
}

.auth-submit {
  font-weight: 700;
  padding: 12px 16px;
  font-size: 16px;
  background: #2f6f9e;
  border-color: #2f6f9e;
}

.auth-submit:hover,
.auth-submit:focus {
  background: #295e86;
  border-color: #295e86;
}

.auth-powered {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  color: #dce6f2;
  font-size: 14px;
  z-index: 2;
}

.auth-powered a {
  color: #dce6f2;
  font-weight: 700;
}

/* Readonly field styling */
.form-control[readonly],
.form-select[readonly],
input[readonly],
select[readonly],
textarea[readonly] {
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border: 1px solid #e0e4e8;
  color: var(--text-secondary);
  cursor: not-allowed;
  font-weight: 500;
  opacity: 0.9;
}

.form-control[readonly]:focus,
.form-select[readonly]:focus,
input[readonly]:focus,
select[readonly]:focus,
textarea[readonly]:focus {
  box-shadow: none;
  border-color: #e0e4e8;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
}

/* Readonly field wrapper for lock icon */
.readonly-wrapper {
  position: relative;
}

.readonly-wrapper .form-control[readonly],
.readonly-wrapper input[readonly],
.readonly-wrapper select[readonly],
.readonly-wrapper textarea[readonly] {
  padding-right: 36px;
}

.readonly-wrapper::after {
  content: "??";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.4;
  pointer-events: none;
}

/* For fields within input groups */
.input-group .form-control[readonly],
.input-group input[readonly] {
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border-color: #e0e4e8;
}

/* Light variant - for subtle readonly display */
.readonly-light {
  background: #fafbfc !important;
  border: 1px solid #e8eaed !important;
  color: var(--text-secondary) !important;
}

/* Action History Timeline Styles */
.action-history-timeline {
  position: relative;
}

.action-history-item {
  position: relative;
}

.action-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1 !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 109, 154, 0.12) !important;
  border-color: #d0dae4 !important;
}

.action-header {
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f5;
}

.action-status-transition {
  padding: 8px 0;
}

.action-status-transition .badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.3px;
}

.action-justification {
  background: #f8f9fb;
  border-left: 3px solid var(--primary);
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 8px;
}

.timeline-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, #d0dae4 0%, #e8ecf1 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.action-history-timeline .action-history-item:last-child .timeline-connector {
  display: none;
}

/* Action History Slide-in Panel */
.action-history-panel-wrapper {
  /* Don't hide - let fixed children be visible */
  pointer-events: none;
}

.action-history-floating-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  width: 42px;
  min-height: 140px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(31, 109, 154, 0.25);
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d0dae4;
  padding: 14px 10px 10px;
  transition: all 0.25s ease;
  pointer-events: auto;
  gap: 10px;
}

.action-history-floating-toggle:hover {
  right: 2px;
  box-shadow: 0 6px 18px rgba(31, 109, 154, 0.4);
}

.action-history-floating-toggle .toggle-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: 10px;
  color: var(--text-main);
}

.action-history-floating-toggle .action-history-count {
  position: absolute;
  top: 8px;
  right: 8px;
  transform: none;
  font-size: 10px;
  padding: 3px 7px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.action-history-floating-toggle.active {
  right: 408px;
}

.action-history-slide-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  z-index: 1040;
  transition: right 0.3s ease-in-out;
  background: var(--surface);
  overflow-y: auto;
  padding: 24px;
  pointer-events: auto;
}

.action-history-slide-panel.active {
  right: 0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar for action history content */
.action-history-content::-webkit-scrollbar {
  width: 6px;
}

.action-history-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.action-history-content::-webkit-scrollbar-thumb {
  background: #c1c9d2;
  border-radius: 10px;
}

.action-history-content::-webkit-scrollbar-thumb:hover {
  background: #a8b3c0;
}

.action-history-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.action-history-close:hover {
  background-color: #e9ecef;
  color: #dc3545;
}

.action-history-close i {
  font-size: 14px;
}

.action-history-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: auto;
}

.action-history-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Enhanced badge colors */
.badge.bg-secondary {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

.badge.bg-success {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
}

.badge.bg-primary-subtle {
  background-color: #cfe2ff !important;
  color: #084298 !important;
}

/* Animation for new items */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-history-item {
  animation: slideIn 0.4s ease-out;
}

.action-history-item:nth-child(1) { animation-delay: 0s; }
.action-history-item:nth-child(2) { animation-delay: 0.1s; }
.action-history-item:nth-child(3) { animation-delay: 0.2s; }
.action-history-item:nth-child(4) { animation-delay: 0.3s; }
.action-history-item:nth-child(5) { animation-delay: 0.4s; }

/* Reports table */
.reports-table thead th {
  background-color: #f2f2f2;
  font-weight: 700;
}

.reports-table tbody td {
  vertical-align: middle;
}

.totals-card .fw-bold {
  font-size: 1.05rem;
}

.totals-vertical .totals-row + .totals-row {
  margin-top: 0.5rem;
}

/* DataTables scrolling fix - only table body scrolls horizontally */
.dataTables_wrapper {
  overflow: visible !important;
  width: 100% !important;
}

.dataTables_scroll {
  overflow: visible !important;
  width: 100% !important;
}

.dataTables_scrollHead {
  overflow: hidden !important;
  width: 100% !important;
}

.dataTables_scrollHead .dataTables_scrollHeadInner {
  width: 100% !important;
  padding-right: 0 !important;
}

.dataTables_scrollHead table {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
}

.dataTables_scrollBody table {
  width: 100% !important;
}

.dataTables_scrollFoot {
  overflow: hidden !important;
  width: 100% !important;
}

/* Ensure report page doesn't scroll horizontally */
body {
  overflow-x: hidden;
}

.app-content {
  overflow-x: hidden;
}

/* Force datatable wrapper to not overflow */
.datatable-wrapper {
  overflow: visible !important;
  width: 100% !important;
}

/* Custom scrollbar for table body */
.dataTables_scrollBody::-webkit-scrollbar {
  height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: #c1c9d2;
  border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: #a8b3c0;
}

.reports-table {
  min-width: 1200px;
}

/* Enhanced User Menu Styles */
.user-dropdown .dropdown-toggle {
  position: relative;
  transition: all 0.3s ease;
}

.user-dropdown .dropdown-toggle:hover {
  transform: scale(1.08);
  background: rgba(31, 109, 154, 0.05);
}

.user-dropdown .dropdown-toggle i {
  font-size: 24px;
}

.user-menu {
  min-width: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0;
  margin-top: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden;
}

.user-menu-header {
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #18567a 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar i {
  font-size: 32px;
  color: white;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-org {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-org i {
  font-size: 11px;
  flex-shrink: 0;
}

.user-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.role-badge {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.95);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.user-menu .dropdown-divider {
  margin: 0;
  border-color: var(--border);
  opacity: 0.3;
}

.user-menu-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 13px 18px !important;
  color: var(--text-main) !important;
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.user-menu-item i {
  font-size: 19px !important;
  color: var(--text-secondary) !important;
  flex-shrink: 0;
  transition: all 0.25s ease;
  width: 22px;
  text-align: center;
}

.user-menu-item span {
  flex: 1;
}

.user-menu-item:hover {
  background: linear-gradient(90deg, rgba(228, 237, 243, 0.6) 0%, rgba(228, 237, 243, 0.3) 100%) !important;
  color: var(--primary) !important;
  padding-left: 24px !important;
  transform: translateX(2px);
}

.user-menu-item:hover i {
  color: var(--primary) !important;
  transform: scale(1.1);
}

.user-menu-logout {
  color: #dc3545 !important;
}

.user-menu-logout i {
  color: #dc3545 !important;
}

.user-menu-logout:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.04) 100%) !important;
  color: #dc3545 !important;
}

.user-menu-logout:hover i {
  color: #dc3545 !important;
}

/* Animation for dropdown */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu.show {
  animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Profile Page Enhancements */
.nav-pills .nav-link {
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-pills .nav-link:not(.active) {
  color: var(--text-secondary);
  background: transparent;
}

.nav-pills .nav-link:not(.active):hover {
  background: var(--secondary);
  color: var(--primary);
}

.nav-pills .nav-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(31, 109, 154, 0.3);
}

/* Bank Details Section */
.bank-detail-item {
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease-out;
}

.bank-detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.bank-detail-item .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.bank-detail-item .remove-bank-detail {
  transition: all 0.3s ease;
}

.bank-detail-item .remove-bank-detail:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

#emptyBankState {
  transition: opacity 0.3s ease;
}

/* Form Control Enhancements */
.form-control-lg {
  padding: 12px 16px;
  border-radius: 8px;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 109, 154, 0.15);
}

/* Alert Enhancements */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-success {
  background: linear-gradient(135deg, var(--success) 0%, #e8f5ef 100%);
}

/* Button Enhancements */
.btn-lg {
  padding: 14px 32px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-primary {
  box-shadow: 0 2px 6px rgba(31, 109, 154, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(31, 109, 154, 0.4);
  transform: translateY(-1px);
}

/* Card Enhancements for Profile */
.card.shadow-sm {
  border-radius: 12px;
}

.card .card-header {
  border-radius: 12px 12px 0 0;
}

/* Label Icons */
.form-label i {
  color: var(--primary);
  opacity: 0.7;
}

/* Animation for bank detail number update */
@keyframes pulseNumber {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
