::-webkit-scrollbar {
  width: 0px;
}

.tab-content {
  animation: fadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Removed conflicting styles to maintain iOS design consistency */

.tag-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.tag-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 10px;
  background: linear-gradient(90deg, rgba(39, 39, 42, 0.5), rgba(39, 39, 42, 0.3));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Modern dropdown styling */
select {
  background-image: linear-gradient(145deg, #000, #111);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dropdown options with black background */
select option {
  background-color: #000 !important;
  color: #fff !important;
}

select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
}

select:hover {
  border-color: #52525b;
  transform: translateY(-1px);
}

/* Input styling */
input[type="date"] {
  background: linear-gradient(145deg, #000, #111);
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

input[type="date"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

input[type="date"]:hover {
  border-color: #52525b;
  transform: translateY(-1px);
}

/* Button styling */
.btn-primary {
  background: linear-gradient(145deg, #4f46e5, #6366f1);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: linear-gradient(145deg, #1f2937, #374151);
  border: 2px solid #4b5563;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn-secondary:hover {
  background: linear-gradient(145deg, #374151, #4b5563);
  border-color: #6b7280;
  transform: translateY(-2px);
}

/* Counter animations */
.counter-number {
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.counter-number:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card-hover:hover {
  transform: translateY(-6px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(39, 39, 42, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f46e5, #6366f1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6366f1, #818cf8);
}

/* Ensure content doesn't overflow on small screens */
@media (max-width: 640px) {

  .stab-card,
  .dump-card {
    min-width: calc(100vw - 2rem);
    padding: 1rem;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Truncate long text on mobile */
  .truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Reduce header text sizes */
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  /* Adjust main content padding */
  main {
    padding: 1rem !important;
  }


  /* Adjust buttons and inputs */
  button,
  input,
  select,
  textarea {
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
  }

  /* Adjust tab navigation */
  .tab-button {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
  }

  /* Removed conflicting card styles to maintain iOS design consistency */

  /* Adjust notification dropdown */
  #notificationDropdown {
    width: calc(100vw - 2rem) !important;
  }

  /* Adjust modals */
  .modal-content {
    width: 90% !important;
    margin: 1rem !important;
  }

  /* Adjust spacing */
  .mb-8,
  .mt-8,
  .my-8 {
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }

  .mb-6,
  .mt-6,
  .my-6 {
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }

  .mb-4,
  .mt-4,
  .my-4 {
    margin-bottom: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  .mb-3,
  .mt-3,
  .my-3 {
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  .p-6 {
    padding: 1rem !important;
  }

  .p-5 {
    padding: 0.75rem !important;
  }

  .p-4 {
    padding: 0.5rem !important;
  }

  /* Adjust icon sizes */
  svg,
  .text-lg {
    font-size: 1rem !important;
  }

  .text-xl {
    font-size: 1.1rem !important;
  }

  .text-sm {
    font-size: 0.75rem !important;
  }

  .text-xs {
    font-size: 0.65rem !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  h1 {
    font-size: 1.25rem !important;
  }

  h2 {
    font-size: 1.1rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }

  .text-base {
    font-size: 0.85rem !important;
  }

  /* Further reduce padding */
  .p-6,
  .p-5,
  .p-4 {
    padding: 0.5rem !important;
  }

  .mb-8,
  .mt-8,
  .my-8,
  .mb-6,
  .mt-6,
  .my-6 {
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  /* Adjust form elements */
  input,
  select,
  textarea {
    font-size: 0.8rem !important;
  }

  /* Adjust button sizes */
  button {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}

/* Very small screens (330px and below) */
@media (max-width: 330px) {

  /* Reduce all text sizes */
  h1 {
    font-size: 1.1rem !important;
  }

  h2 {
    font-size: 1rem !important;
  }

  h3 {
    font-size: 0.9rem !important;
  }

  .text-base {
    font-size: 0.8rem !important;
  }

  .text-sm {
    font-size: 0.7rem !important;
  }

  .text-xs {
    font-size: 0.6rem !important;
  }

  /* Minimize padding */
  .p-6,
  .p-5,
  .p-4,
  .p-3 {
    padding: 0.25rem !important;
  }

  /* Minimize margins */
  .mb-8,
  .mt-8,
  .my-8,
  .mb-6,
  .mt-6,
  .my-6,
  .mb-4,
  .mt-4,
  .my-4,
  .mb-3,
  .mt-3,
  .my-3 {
    margin-bottom: 0.25rem !important;
    margin-top: 0.25rem !important;
  }

  /* Removed conflicting card layout styles to maintain iOS design consistency */

  /* Adjust form elements */
  input,
  select,
  textarea {
    font-size: 0.75rem !important;
    padding: 0.25rem !important;
  }

  /* Adjust buttons */
  button {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Adjust notification dropdown */
  #notificationDropdown {
    width: calc(100vw - 1rem) !important;
    max-width: 300px !important;
  }

  /* Adjust modal size */
  .modal-content {
    width: 95% !important;
    margin: 0.5rem !important;
    padding: 0.5rem !important;
  }


  /* Adjust tab buttons */
  .tab-button {
    padding: 0.25rem !important;
    font-size: 0.7rem !important;
  }

  /* Mobile task action dropdown adjustments */
  [id^="taskActions-"] {
    width: calc(100vw - 2rem) !important;
    max-width: 200px !important;
  }

  [id^="taskActions-"] button {
    font-size: 2rem !important;
    padding: 0.5rem !important;
  }
}