html,
body {
  height: 100%;
}

#sidebar .nav-link {
  color: #065d2f;
}

.content-background {
  background-color: #f4f8f5;
  height: 100vh;
  overflow-y: auto;
}

.content-header {
  border-bottom: 1px solid #dee2e6;
  padding: 16px 24px;
  h3 {
    font-size: 26px;
    line-height: 30px;
    display: -webkit-box;
    max-width: 100%;
    white-space: normal;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media screen and (max-width: 768px) {
  .content-header {
    padding: 16px;
  }
}
.content-main {
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px;
}
@media screen and (max-width: 768px) {
  .content-main {
    padding: 16px;
  }
}
.sidebar-container.sidebar-collapsed {
  padding: 0;
  width: 0;
  overflow: hidden;
  background-color: transparent;
  border: none;
  z-index: 200;
}

.sidebar-container {
  position: relative;
  height: 100vh;
  z-index: 200;
  overflow: hidden;
  width: 280px;
  background-color: #f4f8f5;
  padding-inline: 16px;
  border-right: 1px solid #dee2e6;
  transition: all 0.2s ease-in-out;
}
.sidebar-container:hover {
  overflow: auto;
}
@media screen and (max-width: 992px) {
  .sidebar-container,
  .sidebar-container.sidebar-collapsed {
    position: fixed;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  }
}

/* Ensure date picker button has consistent styling */
#dateTrigger {
  height: 38px;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 120px;
}

/* Fix date picker container alignment */
.date-picker-container {
  display: flex;
  align-items: center;
  height: 38px;
}

.table-dark {
  border: none !important;
}

.table-dark th {
  background-color: #0d8446 !important;
  color: white;
  border-right: 1px solid #cbd5e1 !important;
}

.table-dark th:last-child {
  border-right: none !important;
}

.btn-primary {
  background-color: #0d8446 !important;
  border-color: #0d8446 !important;
  color: #ffffff !important; /* text color */
}

.btn-primary:hover {
  background-color: #ffffff !important;
  color: #0d8446 !important;
  border-color: #0d8446 !important;
}

#sidebarToggle {
  color: #0d8446 !important;
  border-color: #0d8446 !important;
}

#sidebarToggle:hover {
  background-color: #0d8446 !important;
  color: #ffffff !important;
  border-color: #0d8446 !important;
}

.text-primary {
  color: #0d8446 !important;
}

a {
  color: #0d8446 !important;
}

.btn-secondary {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.btn-secondary:hover {
  background-color: #0d8446 !important;
  color: white !important;
}

.active > .page-link,
.page-link.active {
  background-color: #0d8446 !important;
  border-color: #0d8446 !important;
}

.delete-button {
  background-color: white !important;
  color: red;
  border: none !important;
}

tr:hover .delete-button,
tr:hover .recover-button {
  background-color: #e5e6e7 !important;
}

tr:hover .delete-button:hover {
  background-color: red !important;
  color: white !important;
}

.recover-button {
  background-color: white !important;
  color: #0d8446;
  border: none !important;
}

tr:hover .recover-button:hover {
  background-color: #0d8446 !important;
  color: white !important;
}

.table td,
.table th {
  padding: 0.7rem 0.7rem !important;
}

.table-light {
  --bs-table-bg: white !important;
  background-color: white !important;
  border-color: #cbd5e1 !important;
}

.content-table {
  border-color: #cbd5e1 !important;
}

.nav-pills li {
  transition: all 0.2s ease;
}

.nav-pills {
}
/* For Form Checkbox  */
.form-check-input:checked {
  background-color: #0d8446;
  border-color: #0d8446;
}
.form-check-input:focus {
  border-color: #2e7550;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 132, 70, 0.25);
}
/* Logo area styling */
.patrontip-logo {
  transition: all 0.3s ease;
  filter: brightness(1);
}

.patrontip-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#menu > li {
  width: 100%;
  border-bottom: 1px solid #cbd5e1;
}

.sign-out-button {
  color: #0d8446;
}

.sign-out-button:hover {
  color: #0d8446;
}

.default-text {
  color: #0d8446;
}

.forgot-password {
  margin-top: 15px;
  margin-bottom: 15px;
}

.dropdown-menu {
  background-color: #0d8446 !important;
}

.dropdown-item {
  padding: 1px 5px;
}

.dropdown-item:hover {
  color: #0d8446 !important;
}

.dropdown-item:active {
  color: #0d8446 !important;
  background-color: white !important;
}

.clickable-row {
  cursor: pointer;
}

#sidebar .nav-link.active {
  background-color: #0d8446 !important;
  color: white !important;
}

/* Date picker specific nav-link styles to override sidebar styles */
.date-dropdown .nav-link {
  position: static !important;
  border-radius: 6px !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out !important;
  overflow: visible !important;
  text-decoration: none !important;
  display: block !important;
  align-items: initial !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  color: #495057 !important;
}

.date-dropdown .nav-link::before {
  display: none !important;
}

.date-dropdown .nav-link:hover {
  background-color: transparent !important;
  color: #0d8446 !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

.date-dropdown .nav-link.active {
  background-color: #0d8446 !important;
  color: white !important;
  font-weight: normal !important;
  padding: 8px 16px !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

.date-dropdown .nav-link.active:hover {
  background-color: #065d2f !important;
  color: white !important;
  transform: none !important;
  box-shadow: none !important;
}

.date-dropdown .nav-link i,
.date-dropdown .nav-link span {
  transform: none !important;
  transition: none !important;
  z-index: initial !important;
  position: static !important;
}

.nav-link-custom-padding.active {
  padding-left: 16px !important;
}

.nav-link-custom-padding:hover {
  padding-left: 16px !important;
  color: #0d8446;
}

/* Attractive hover effects for sidebar navigation links only */
#sidebar .nav-link {
  position: relative;
  border-radius: 6px !important;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  padding: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

#sidebar .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

#sidebar .nav-link:hover {
  background-color: rgba(13, 132, 70, 0.1) !important;
  color: #0d8446 !important;
}

#sidebar .nav-link:hover i {
  transform: scale(1.1);
  color: #0d8446 !important;
}

#sidebar .nav-link:hover span {
  color: #0d8446 !important;
  font-weight: 500;
}

#sidebar .nav-link i {
  transition: all 0.3s ease;
  margin-right: 8px;
  z-index: 2;
  position: relative;
}

#sidebar .nav-link span {
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

/* Active state adjustments for sidebar only */
#sidebar .nav-link.active {
  background-color: #0d8446 !important;
  color: white !important;
  font-weight: bold !important;
}

#sidebar .nav-link.active:hover {
  background-color: #065d2f !important;
}

#sidebar .nav-link.active i,
#sidebar .nav-link.active span {
  color: white !important;
}

/* Menu list item styling */
#menu > li {
  width: 100%;
  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
  position: relative;
}

#menu > li:hover {
  background-color: rgba(13, 132, 70, 0.05);
  border-radius: 8px;
  margin: 2px 0;
}

/* Smooth animations for sidebar collapse */
#sidebar .nav-link span {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#clear-filters {
  display: none;
}

.text-primary {
  margin-bottom: 0px !important;
}

/* CSS for active filter */
.active-filter {
  background-color: #0d8446 !important;
  color: white !important;
  border: 2px solid #065d2f;
}

input[type="date"] {
  text-transform: uppercase;
}

#page-number {
  width: 8rem;
  height: 38px;
}
@media screen and (max-width: 480px) {
  .text-warning-fonts {
    font-size: 14px;
    font-weight: 600 !important;
  }
}
/* Profile picture and initials placeholder styling */
.profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.initials-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  font-size: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.date-filter-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.date-filter-btn {
  border-radius: 8px !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 12px;
  transition: all 0.2s ease;
  border: 1.5px solid #0d8446 !important;
  color: #0d8446 !important;
  background-color: white !important;
  position: relative;
  overflow: hidden;
}

.date-filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.date-filter-btn:hover::before {
  left: 100%;
}

.date-filter-btn:hover {
  background-color: #0d8446 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

.date-filter-btn:active {
  transform: translateY(0);
}

.date-filter-btn.active-filter {
  background-color: #0d8446 !important;
  color: white !important;
  box-shadow: 0 0 0 3px rgba(13, 132, 70, 0.2);
  font-weight: 600;
}

.date-filter-btn i {
  font-size: 0.9em;
}

/* Responsive design for date filters */
@media (max-width: 768px) {
  .date-filter-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .date-filter-buttons {
    gap: 2px;
  }
}

@media (max-width: 576px) {
  .date-filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filter-btn {
    margin-bottom: 2px;
    text-align: center;
  }
}

.timezone-dropdown-button {
  border: 1px solid black;
  background-color: white;
}

.timezone-dropdown-button:hover {
  border: 1px solid black;
}

.timezone-dropdown-item {
  color: black !important;
  background-color: white !important;
  padding: 5px 10px;
  text-decoration: none !important;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

.timezone-dropdown-item:hover {
  color: white !important;
  background-color: #0d8446 !important;
}

.timezone-dropdown-item:active {
  color: white !important;
  background-color: #0d8446 !important;
}

.timezone-dropdown-menu {
  background-color: white !important;
}
.dropdown.timezone-dropdown {
  width: 100%;
  max-width: 180px;
}
@media screen and (max-width: 576px) {
  .dropdown.timezone-dropdown {
    max-width: 90px;
  }
}
/* Timezone dropdown specific alignment */
.timezone-dropdown .dropdown-menu {
  background-color: white !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-top: 30px !important;
}

.account-settings-dropdown {
  transform: translate(25px, 32px) !important;
  right: 4px !important;
}

.dropdown-toggle.account-link span {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* Detail view utility classes */
.detail-label {
  min-width: 170px;
  display: inline-block;
}

.detail-value {
  flex: 1;
  margin-left: 0.5rem;
}

.cursor-pointer {
  cursor: pointer;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.draggable-row {
  cursor: move;
  transition: all 0.2s ease;
}

.draggable-row:hover {
  background-color: #f8f9fa !important;
}

.dragging {
  opacity: 0.8;
  background-color: #e3f2fd !important;
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
  border: 2px solid #0d8446;
  z-index: 1000;
  transform: scale(1.02);
}

.drag-over {
  border-top: 3px solid #0d8446 !important;
}

.drag-handle {
  cursor: grab;
  color: #6c757d;
  padding: 0 5px;
}

.drag-handle:hover {
  color: #0d8446;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Fix date picker container alignment */
.date-picker-container {
  display: flex;
  align-items: center;
  height: 38px;
}

.date-dropdown {
  position: absolute;
  z-index: 1050;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  width: max-content;
  top: 100%;
  margin-top: 5px;
}
@media screen and (min-width: 768px) {
  .date-dropdown {
    left: 50%;
    transform: translateX(-50%);
  }
}
.picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
}
.btn-ok {
  background-color: #0d8446;
  border: none;
  color: white;
  border-radius: 6px;
}
.btn-cancel {
  color: #0d8446;
  border: 1px solid #0d8446;
  background-color: white;
  border-radius: 6px;
}
.btn-link-primary {
  color: #0d8446;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}
.btn-link-primary:hover {
  opacity: 0.8;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.month-cell {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  background: #f9f9f9;
}
.month-cell:hover {
  background: #0d8446;
  color: white;
}
.month-cell.selected {
  background: #0d8446;
  color: white;
  font-weight: bold;
}
.flatpickr-current-month {
  font-size: 16px;
}
.flatpickr-monthDropdown-years {
  border: none;
  outline: none;
  font-weight: bold !important;
}

/* Increase font weight for month dropdown options */
.flatpickr-monthDropdown-months {
  font-weight: bold !important;
}

.flatpickr-monthDropdown-month {
  font-weight: bold !important;
}

/* Increase font weight for year input */
.numInput.cur-year {
  font-weight: bold !important;
}
.month-picker-wrapper {
  width: 100%;
  text-align: center;
  font-family: sans-serif;
}

.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  font-size: 18px;
  font-weight: 400;
}

.year-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.year-header .year-label {
  flex: 1;
  text-align: center;
}
/* Allow year navigation arrows to show */
.numInputWrapper .arrowUp,
.numInputWrapper .arrowDown {
  display: inline-block;
}

/* Year navigation arrows styling */
.year-nav-prev,
.year-nav-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
  width: 28px !important;
  height: 28px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #495057 !important;
  font-weight: bold !important;
  user-select: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000 !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.year-nav-prev {
  margin-right: 4px !important;
}

.year-nav-next {
  margin-left: 4px !important;
}

.year-nav-prev:hover,
.year-nav-next:hover {
  background: #0d8446 !important;
  border-color: #0d8446 !important;
  color: white !important;
  transform: scale(1.05) !important;
  box-shadow: 0 2px 4px rgba(13, 132, 70, 0.3) !important;
}

.year-nav-prev:active,
.year-nav-next:active {
  transform: scale(0.95) !important;
}

/* Ensure proper spacing in flatpickr navigation */
.flatpickr-months {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 5px !important;
  position: relative !important;
}

/* Ensure all navigation buttons are visible and properly spaced */
.flatpickr-prev-month,
.flatpickr-next-month,
.year-nav-prev,
.year-nav-next {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1001 !important;
}

/* Force proper display for month navigation buttons */
.flatpickr-prev-month,
.flatpickr-next-month {
  flex-shrink: 0 !important;
}

/* Style the month name to accommodate year */
.flatpickr-month .cur-month {
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 16px !important;
  min-width: 120px !important;
  text-align: center !important;
  flex: 1 !important;
}

/* Additional styling for range mode with two calendars */
.flatpickr-calendar.hasWeeks.range {
  width: auto !important;
}

.flatpickr-calendar.inline {
  display: inline-block !important;
  margin: 0 !important;
  box-shadow: none;
}

/* Ensure proper spacing for range mode */
.flatpickr-calendar.range .flatpickr-month {
  margin-bottom: 10px !important;
}

/* Hide default year input in range mode */
.flatpickr-calendar.range .numInput.cur-year {
  display: none !important;
}

/* Ensure year input is visible in single date mode (default behavior) */
.flatpickr-calendar:not(.range) .numInput.cur-year {
  display: inline-block !important;
  visibility: visible !important;
}

/* Hide year input when month already includes year */
.flatpickr-calendar.single-with-year .numInput.cur-year {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  opacity: 0 !important;
}

.datepicker-ok-button {
  background-color: #0d8446;
}

.datepicker-cancel-button {
  border-color: #0d8446;
  color: #0d8446;
}

/* Flatpickr selected date styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange {
  background: #0d8446 !important;
  border-color: #0d8446 !important;
  color: white !important;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.inRange:hover {
  background: #0b7139 !important;
  border-color: #0b7139 !important;
}

.flatpickr-day.today.selected,
.flatpickr-day.today.startRange,
.flatpickr-day.today.endRange {
  background: #0d8446 !important;
  border-color: #0d8446 !important;
  color: white !important;
}

/* Simple form alignment fix */
#filterForm .btn,
#filterForm .form-control,
#filterForm .form-select {
  height: 38px;
}

#filterForm {
  align-items: center;
}

/* Prevent button text wrapping */
#filterForm .btn {
  white-space: nowrap;
  min-width: fit-content;
  flex-shrink: 0;
}

/* Min-width for plan select using rem units, no media queries */
.plan-select-responsive {
  min-width: 11.25rem;
}
/* Max/min width for search field using rem units, no media queries */
.search-narrow {
  max-width: 11.75rem;
  min-width: 6.5rem;
}

.hidden {
  display: none !important;
}

/* Django Messages Integration */
.messages-container .alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error,
.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* Profile Picture Styling */
.profile-picture-section {
  max-width: 300px;
  margin: 0 auto;
}

.profile-picture-container {
  display: inline-block;
  position: relative;
}

.profile-picture-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.profile-picture-preview:hover {
  border-color: #0d8446;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-initials {
  font-size: 2.5rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  user-select: none;
}

.upload-progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Drag & Drop Zone */
.drag-drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.drag-drop-zone:hover,
.drag-drop-zone.drag-over {
  border-color: #0d8446;
  background: #e7f3ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.drag-drop-zone.drag-over::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(0, 123, 255, 0.1) 25%,
    rgba(0, 123, 255, 0.1) 50%,
    transparent 50%,
    transparent 75%,
    rgba(0, 123, 255, 0.1) 75%
  );
  background-size: 20px 20px;
  animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

.drag-drop-content {
  position: relative;
  z-index: 2;
}

.drag-drop-icon {
  font-size: 2rem;
  color: #6c757d;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.drag-drop-zone:hover .drag-drop-icon,
.drag-drop-zone.drag-over .drag-drop-icon {
  color: #0d8446;
}

.drag-drop-text {
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.drag-drop-subtext {
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0;
}

/* Upload Actions */
.upload-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  color: var(--bs-btn-hover-color) !important;
  background-color: var(--bs-btn-hover-bg) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
}

.btn-outline-danger {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* File Requirements */
.file-requirements {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 4px 6px;
}

/* Upload Status */
.upload-status .alert {
  border-radius: 8px;
  border: none;
  padding: 8px 12px;
  font-size: 0.875rem;
  margin: 0;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-picture-preview {
    width: 120px;
    height: 120px;
  }

  .profile-initials {
    font-size: 2rem;
  }

  .drag-drop-zone {
    padding: 15px;
  }

  .upload-actions {
    flex-direction: column;
    align-items: center;
  }

  .upload-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Animation for successful upload */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.profile-picture-preview.upload-success {
  animation: successPulse 0.6s ease-in-out;
  border-color: #28a745;
}

/* Admin Form Fields Styling */
.admin-form-fields {
  max-width: 100%; /* Use full available width */
  padding-left: 20px; /* Add some spacing from the profile section */
}

.admin-form-fields .form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.admin-form-fields .form-control:focus {
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: translateY(-1px);
}

.admin-form-fields .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.admin-form-fields .text-danger {
  color: #dc3545 !important;
}

/* Make form fields consistent spacing */
.admin-form-fields .mb-3 {
  margin-bottom: 1.5rem !important;
}

.grid-view-controls .btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-width: 1.5px;
}

/* Primary buttons (matching PatronTip green theme) */
.grid-view-controls .btn-outline-primary {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.grid-view-controls .btn-outline-primary:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Secondary buttons */
.grid-view-controls .btn-outline-secondary {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.grid-view-controls .btn-outline-secondary:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Info buttons */
.grid-view-controls .btn-outline-info {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.grid-view-controls .btn-outline-info:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Warning buttons (Reset) */
.grid-view-controls .btn-outline-warning {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
  border-radius: 8px !important;
}

.grid-view-controls .btn-outline-warning:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Success buttons (Set Default) */
.grid-view-controls .btn-outline-success {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.grid-view-controls .btn-outline-success:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Danger buttons (Delete) */
.grid-view-controls .btn-outline-danger {
  background-color: white !important;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.grid-view-controls .btn-outline-danger:hover {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Primary solid buttons (Save Grid View) */
.grid-view-controls .btn-primary {
  background-color: #0d8446 !important;
  border-color: #0d8446 !important;
  color: white !important;
}

.grid-view-controls .btn-primary:hover {
  background-color: white !important;
  color: #0d8446 !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Secondary solid buttons (Cancel) */
.grid-view-controls .btn-secondary {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
}

.grid-view-controls .btn-secondary:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3);
}

/* Dropdown styling */
.grid-view-controls .dropdown-menu {
  background-color: white !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.grid-view-controls .dropdown-item {
  color: #0d8446 !important;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.grid-view-controls .dropdown-item:hover {
  background-color: #0d8446 !important;
  color: white !important;
}

.grid-view-controls .dropdown-item:hover a,
.grid-view-controls .dropdown-item:hover .load-grid-view,
.grid-view-controls .dropdown-item:hover .text-decoration-none {
  color: white !important;
}

.grid-view-controls .dropdown-item:hover .badge {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.grid-view-controls .dropdown-item:active {
  background-color: #0d8446 !important;
  color: white !important;
}

.grid-view-controls .dropdown-item:active a,
.grid-view-controls .dropdown-item:active .load-grid-view,
.grid-view-controls .dropdown-item:active .text-decoration-none {
  color: white !important;
}

.grid-view-controls .dropdown-item:active .badge {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.grid-view-controls .dropdown-header {
  color: #495057;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid-view-controls .dropdown-divider {
  border-color: #cbd5e1;
  margin: 0.5rem 0;
}

/* Form controls in dropdowns */
.grid-view-controls .form-check-input:checked {
  background-color: #0d8446 !important;
  border-color: #0d8446 !important;
}

.grid-view-controls .form-check-input:focus {
  border-color: #0d8446 !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 132, 70, 0.25) !important;
}

.grid-view-controls .form-check-label {
  color: #495057;
  font-weight: 500;
}

/* Column selector list */
.column-selector-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.column-selector-list::-webkit-scrollbar {
  width: 6px;
}

.column-selector-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.column-selector-list::-webkit-scrollbar-thumb {
  background: #0d8446;
  border-radius: 3px;
}

.column-selector-list::-webkit-scrollbar-thumb:hover {
  background: #065d2f;
}

/* Badge styling */
.grid-view-controls .badge {
  background-color: #0d8446 !important;
  color: white !important;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Modal styling */
.grid-view-controls .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.grid-view-controls .modal-header {
  background: linear-gradient(135deg, #0d8446, #065d2f);
  color: white;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.grid-view-controls .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.grid-view-controls .btn-close {
  filter: invert(1);
}

.grid-view-controls .modal-body {
  padding: 2rem;
}

.grid-view-controls .modal-footer {
  border-top: 1px solid #cbd5e1;
  padding: 1rem 2rem;
}

/* Form styling in modal */
.grid-view-controls .form-control {
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.grid-view-controls .form-control:focus {
  border-color: #0d8446 !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 132, 70, 0.25) !important;
  transform: translateY(-1px);
}

.grid-view-controls .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.grid-view-controls .form-text {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Alert styling in modal */
.grid-view-controls .alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border: none;
  border-left: 4px solid #0d8446;
  border-radius: 8px;
}

/* Dropdown actions styling */
.dropdown-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.dropdown-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 4px;
}

/* Notification styling */
.grid-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid-notification.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #0d8446;
}

.grid-notification.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Grid column visibility */
.grid-column-hidden {
  display: none !important;
}

.grid-column-visible {
  display: table-cell !important;
}

/* Responsive design */

@media (max-width: 576px) {
  .grid-view-controls .modal-body {
    padding: 1rem;
  }

  .grid-view-controls .modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .grid-view-controls .modal-footer .btn {
    width: 100%;
  }
}

/* Loading states */
.grid-view-controls .btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.grid-view-controls .btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: grid-spin 1s linear infinite;
}

@keyframes grid-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Hover effects for interactive elements */
.grid-view-controls .dropdown-item-text {
  color: #6c757d !important;
  font-style: italic;
}

.grid-view-controls .load-grid-view {
  color: #0d8446 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.grid-view-controls .load-grid-view:hover {
  color: white !important;
}

/* Enhanced button group styling */

.grid-view-controls .btn-group .btn:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}

/* Action buttons (View Details, etc.) - Match grid view control styling */
.action-btn {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border-width: 1.5px !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
}

.action-btn:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3) !important;
  text-decoration: none !important;
}

.action-btn:focus {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 132, 70, 0.25) !important;
}

.action-btn:active {
  background-color: #065d2f !important;
  border-color: #065d2f !important;
  color: white !important;
  transform: translateY(0) !important;
}

/* Action buttons (View Details, etc.) - Match grid view control styling */
.action-btn {
  background-color: white !important;
  border-color: #0d8446 !important;
  color: #0d8446 !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border-width: 1.5px !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
}

.action-btn:hover {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(13, 132, 70, 0.3) !important;
  text-decoration: none !important;
}

.action-btn:focus {
  background-color: #0d8446 !important;
  color: white !important;
  border-color: #0d8446 !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 132, 70, 0.25) !important;
}

.action-btn:active {
  background-color: #065d2f !important;
  border-color: #065d2f !important;
  color: white !important;
  transform: translateY(0) !important;
}

.form-control:focus {
  border-color: #0d8446 !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 132, 70, 0.25) !important;
}

/* Grid view styling */
/* Custom styling for grid view modals */
.grid-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid-notification .alert {
  margin-bottom: 0;
  border-radius: 8px;
}

#deleteGridViewModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#deleteGridViewModal .modal-header,
#resetViewModal .modal-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px 12px 0 0;
}

#deleteGridViewModal .modal-title,
#resetViewModal .modal-title {
  font-weight: 600;
  color: #495057;
}

#deleteGridViewModal .bg-light,
#resetViewModal .bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
}

#deleteGridViewModal .alert-warning {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

#resetViewModal .alert-info {
  border-left: 4px solid #0dcaf0;
  background: linear-gradient(135deg, #d1ecf1 0%, #b8daff 100%) !important;
}

#deleteGridViewModal .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

#deleteGridViewModal .btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#resetViewModal .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border: none;
  color: #212529;
  font-weight: 500;
  transition: all 0.2s ease;
}

#resetViewModal .btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  color: #212529;
}

#deleteGridViewModal .btn-outline-secondary,
#resetViewModal .btn-outline-secondary {
  font-weight: 500;
  transition: all 0.2s ease;
}

#deleteGridViewModal .btn-outline-secondary:hover,
#resetViewModal .btn-outline-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#resetViewModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Loading state for buttons */
.btn.loading {
  position: relative;
  pointer-events: none;
}

.btn.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

/* Grid notification styles */
.grid-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  min-width: 300px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  animation: slideInFromRight 0.4s ease-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.grid-notification.fade {
  animation: slideOutToRight 0.3s ease-in forwards;
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.grid-notification .alert-success {
  background-color: #d4edda;
  border-color: #0d8446;
  color: #0d8446;
}

.grid-notification .alert-danger {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #dc3545;
}

.grid-notification .btn-close {
  filter: none;
  color: inherit;
  opacity: 0.7;
}

.grid-notification .btn-close:hover {
  opacity: 1;
}

/* Custom Grid Notification Styles */
body .custom-grid-notification {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10000 !important;
  min-width: 300px;
  max-width: 400px;
  background: #fff !important;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  pointer-events: auto;
}

body .custom-grid-notification.show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

body .custom-grid-notification .notification-content {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body .custom-grid-notification .notification-text-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

body .custom-grid-notification .notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

body .custom-grid-notification .notification-message {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

body .custom-grid-notification .notification-close-btn {
  background: none !important;
  border: none !important;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

body .custom-grid-notification .notification-close-btn:hover {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Success notification styling */
body .custom-grid-notification.notification-success {
  border-left: 4px solid #28a745 !important;
  background-color: #f8fff9 !important;
}

body .custom-grid-notification.notification-success .notification-icon {
  color: #28a745;
}

body .custom-grid-notification.notification-success .notification-message {
  color: #155724;
}

body .custom-grid-notification.notification-success .notification-close-btn {
  color: #155724;
}

/* Error notification styling */
body .custom-grid-notification.notification-error {
  border-left: 4px solid #dc3545 !important;
  background-color: #fff5f5 !important;
}

body .custom-grid-notification.notification-error .notification-icon {
  color: #dc3545;
}

body .custom-grid-notification.notification-error .notification-message {
  color: #721c24;
}

body .custom-grid-notification.notification-error .notification-close-btn {
  color: #721c24;
}

@media (max-width: 428px) {
  #pagination-form {
    margin: 0.5rem auto 0 0 !important;
  }
}


/* Responsive design for notifications */
@media (max-width: 576px) {
  body .custom-grid-notification {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    min-width: auto !important;
    max-width: none !important;
  }

  body .custom-grid-notification .notification-content {
    padding: 12px;
  }

  body .custom-grid-notification .notification-message {
    font-size: 13px;
  }
}
