@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css");
@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.39.0/css/tempusdominus-bootstrap-4.css");



.fields-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Signup page styles (converted from pages/signup.scss for plain CSS loading) */
.signup-container {
  grid-template-columns: 2fr 1fr;
  height: 100vh;
}

.signup-container .left-container {
  background-color: #fbfcfc;
}

.signup-container .wellcome-wrapper {
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  gap: 80px;
  margin-top: -50px;
  max-width: 720px;
}

.signup-container .wellcome-wrapper .wellcome-image-wrapper {
  max-height: calc(100vh - 500px);
  width: 100%;
  overflow: hidden;
}

.signup-container .signup-form-wrapper {
  height: 100%;
  overflow-y: auto;
  padding: 32px 54px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: column;
}

.signup-container .signup-form-wrapper .signup-inner-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: column;
  margin: auto 0;
  width: 100%;
}

.signup-container .signup-form-wrapper .signup-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.signup-container .toast-container {
  z-index: 1050;
}

.signup-container .toast {
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s linear;
}

.signup-container .toast-header {
  border-bottom: none;
}

.signup-container .toast-body {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #495057;
}

.signup-container .toast-body ul {
  margin-bottom: 0;
}

.signup-container .toast-body li {
  margin-bottom: 5px;
}

.signup-container .toast-body li:last-child {
  margin-bottom: 0;
}

.signup-container .toast-hiding {
  opacity: 0;
}

.signup-container .btn-close-white:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Signup input/floating-label styles */
.custom-input-floating-label .form-control.form-control-custom {
  border-radius: 8px;
  padding: 16px 14px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  color: #212b36;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.custom-input-floating-label .form-control.form-control-custom:focus {
  box-shadow: none;
  outline: none;
}

.custom-input-floating-label > label {
  padding: 0;
  top: 16px;
  left: 14px;
  height: auto;
  color: #919eab;
}

.custom-input-floating-label > .form-control:not(:-moz-placeholder-shown) ~ label {
  top: -5px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0 2px;
  color: #919eab;
}

.custom-input-floating-label > .form-control:not(:-ms-input-placeholder) ~ label {
  top: -5px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0 2px;
  color: #919eab;
}

.custom-input-floating-label > .form-control:not(:placeholder-shown) ~ label,
.custom-input-floating-label > .form-control:focus ~ label {
  top: -5px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0 2px;
  color: #919eab;
}

.h1-bold {
  font-weight: 700;
}

.h3-bold {
  font-weight: 700;
}

.text-s {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.text-s-600 {
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.text-m-700 {
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
}

.btn.btn-link {
  padding: 0;
  border: none;
  color: #0470e4;
  text-decoration: none;
}

.btn.btn-custom {
  padding: 11px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn.btn-custom.btn-primary {
  color: #ffffff;
  background-color: #0470e4;
}

.fields-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fields-row-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.logo-wrapper {
  height: 128px;
  width: 121px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.form-footer .btn.btn-custom {
  max-width: 256px;
}

.body-container {
  height: 100vh;
}

.logging-section {
  height: calc(100% - 88px);
  padding: 64px 0px;
}

.container-custom-main {
  margin: 0px auto;
  padding: 64px 0px;
  max-width: 1665px;
}





/* Image preview styling */
.image-preview-container {
  margin-top: 10px;
  text-align: center;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.image-preview {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  object-fit: contain;
}

.close-button {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ff4d4f;
  color: white;
  border: none;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.close-button:hover {
  background-color: #ff7875;
}


.custom-file-input-wrapper {
  position: relative;
}

@media (max-width: 576px) {
  .notification-option {
    border-radius: 0.5rem !important;
  }

  .card {
    margin: 0 -0.5rem;
  }

  .card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
  }
}

@media (max-width: 768px) {
  .notification-option:active {
    transform: scale(0.98);
    background-color: #f8f9ff !important;
    border-color: #667eea !important;
  }
}

/* Improved checkbox styling for mobile */
@media (max-width: 768px) {
  .form-check-input {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* Mobile navigation improvements */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Better mobile form controls */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
}

/* Better touch targets */
.notification-option label {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Smooth transitions */
.notification-option,
.btn {
  transition: all 0.2s ease-in-out;
}

/* Focus states for accessibility */
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25), 0 4px 15px rgba(102, 126, 234, 0.3);
}

.notification-item {
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  background-color: #f0f8ff;
  border-left: 4px solid #007bff;
}

.notification-icon {
  width: 20px;
  text-align: center;
}

.notification-actions .btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions .btn {
  opacity: 1;
}

.notification-content h6 {
  line-height: 1.4;
}

.notification-content p {
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .notification-actions .btn {
    opacity: 1;
  }

  .notification-item {
    padding: 0.75rem !important;
  }
  /* Navbar improvements for mobile */
  .navbar .dropdown-menu {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15) !important;
  }

  .navbar .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Notification badge improvements */
  .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.4em;
  }

  /* Better touch feedback */
  .dropdown-item {
    transition: background-color 0.15s ease-in-out;
  }

}

.mobile-notification-panel {
  position: fixed;
  inset: 0;
  z-index: 1060;
  pointer-events: none;
}

.mobile-notification-panel.mobile-notification-panel-open {
  pointer-events: all;
}

.mobile-notification-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-notification-panel-open .mobile-notification-overlay {
  opacity: 1;
}

.mobile-notification-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.mobile-notification-panel-open .mobile-notification-content {
  transform: translateX(0);
}

.mobile-notification-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
}

.mobile-notification-list {
  flex: 1;
  overflow-y: auto;
}

.mobile-notification-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #dee2e6;
  flex-shrink: 0;
}

.mobile-notification-empty {
  padding: 2rem;
}

/* Dashboard Responsive Styles */
@media (max-width: 1200px) {
  .card-body .display-4 {
    font-size: 2rem;
    word-break: break-word;
    hyphens: auto;
  }
  
  .card-body .display-6 {
    font-size: 1.5rem;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Stats card responsive improvements for large numbers */
  .stats-card .card-body {
    min-height: 80px;
  }
  
  .stats-card .card-text {
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 768px) {
  /* Dashboard Cards */
  .card-body .display-4 {
    font-size: 1.5rem;
    line-height: 1;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .card-body .display-6 {
    font-size: 1.25rem;
    line-height: 1;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .card-title {
    font-size: 0.875rem;
    line-height: 1.2;
  }
  
  /* Enhanced stats card responsiveness */
  .stats-card .card-body {
    min-height: 70px;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem;
  }
  
  .stats-card .card-title {
    width: 100% !important;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .stats-card .card-text {
    width: 100% !important;
    text-align: center;
    font-size: 1.5rem !important;
    padding: 0.5rem 0 !important;
    margin: 0;
    line-height: 1;
  }
  
  /* Table Responsiveness */
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .table-responsive .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .table-responsive .badge {
    font-size: 0.75rem;
  }
  
  /* Quick Actions */
  .quick-actions .btn {
    font-size: 0.875rem;
    padding: 1rem 0.5rem;
  }
  
  .quick-actions .display-4 {
    font-size: 1.5rem;
  }
  
  /* Stats Cards */
  .stats-card .card-body {
    padding: 1rem;
  }
  
  .stats-card .card-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  /* Dashboard Cards */
  .card-body .display-4 {
    font-size: 1.25rem;
    line-height: 0.95;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .card-body .display-6 {
    font-size: 1rem;
    line-height: 0.95;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .card-title {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  
  /* Ultra-responsive stats cards for small screens */
  .stats-card .card-body {
    min-height: 65px;
    padding: 0.5rem;
  }
  
  .stats-card .card-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .stats-card .card-text {
    font-size: 1.25rem !important;
    padding: 0.25rem 0 !important;
  }
  
  /* Table Responsiveness */
  .table-responsive {
    font-size: 0.8rem;
  }
  
  .table-responsive .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem 0.25rem;
  }
  
  /* Quick Actions */
  .quick-actions .btn {
    font-size: 0.8rem;
    padding: 0.75rem 0.25rem;
  }
  
  .quick-actions .display-4 {
    font-size: 1.25rem;
  }
  
  /* Stats Cards */
  .stats-card .card-body {
    padding: 0.75rem;
  }
  
  .stats-card .card-title {
    font-size: 0.7rem;
  }
  
  /* Hide less important columns on mobile */
  .table-responsive .d-none-mobile {
    display: none !important;
  }
}

/* Dashboard specific responsive improvements */
.dashboard-responsive {
  overflow-x: auto;
}

.dashboard-responsive .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.dashboard-responsive .col-md-3,
.dashboard-responsive .col-md-4,
.dashboard-responsive .col-md-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Large number handling utilities */
.stats-card .card-text {
  /* Number overflow handling */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* Prevent layout breaking */
  max-width: 100%;
  box-sizing: border-box;

  /* Better number display */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.stats-card .card-text[data-length="7-9"] {
  font-size: calc(var(--bs-font-size-base) * 1.5) !important;
}

.stats-card .card-text[data-length="10+"] {
  font-size: calc(var(--bs-font-size-base) * 1.2) !important;
  letter-spacing: -0.5px;
}

/* Responsive adjustments for extremely large numbers */
@media (max-width: 992px) {
  .stats-card .card-text {
    /* Automatic font scaling for medium screens */
    font-size: clamp(1rem, 2.5vw, 2rem) !important;
  }
}

@media (max-width: 576px) {
  .stats-card .card-text {
    /* More aggressive scaling for small screens */
    font-size: clamp(0.9rem, 4vw, 1.25rem) !important;
    
    /* Allow number wrapping on very small screens if needed */
    white-space: normal;
    word-break: break-all;
    line-height: 0.9;
  }
  
  /* Adjust card height for wrapped numbers */
  .stats-card .card-body {
    min-height: auto;
    padding: 0.5rem 0.25rem;
  }
}

/* Mobile notification system enhancements */
@media (max-width: 480px) {
  .mobile-notification-content {
    width: 100vw;
    max-width: none;
  }
  
  .mobile-notification-header {
    padding: 0.75rem;
  }
  
  .mobile-notification-footer {
    padding: 0.75rem;
  }
}

.notification-dropdown-desktop {
  min-width: 360px;
  max-width: 420px;
}

.notification-list-desktop {
  max-height: 380px;
  overflow-y: auto;
}

@media (min-width: 1200px) {
  .notification-dropdown-desktop {
    min-width: 380px;
    max-width: 450px;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1600px) {
  .notification-dropdown-desktop {
    min-width: 400px;
    max-width: 500px;
  }
}

/* Logo Styling */
.navbar-logo {
  transition: all 0.3s ease;
}

.sidebar-logo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.sidebar-logo-img {
  transition: all 0.3s ease;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .navbar-logo {
    height: 42px !important;
  }
  
  .sidebar-logo-img {
    height: 35px !important;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 38px !important;
  }
  
  .sidebar-logo-img {
    height: 30px !important;
  }
}

/* Card improvements for mobile */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* Better touch targets */
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved spacing */
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  
  /* Enhanced dropdown animations */
  .dropdown-menu {
    animation: fadeInDown 0.3s ease-out;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


tbody turbo-frame {
  display: contents;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.15s ease;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.15s ease;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

#side_nav {
  view-transition-name: sidebar;
}

.dashboard-content {
  view-transition-name: main-content;
}

.top-navbar, .navbar {
}

::view-transition-old(sidebar),
::view-transition-new(sidebar),
::view-transition-old(top-navbar),
::view-transition-new(top-navbar) {
  animation: none;
}
