/* Custom styles for the blood work tracker */

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Drag and drop styles */
.drag-over {
  border-color: #8b5cf6 !important;
  background-color: rgba(139, 92, 246, 0.1) !important;
}

/* Progress bar animation */
.progress-bar {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  height: 8px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Chart container */
#health-chart {
  max-height: 384px;
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Custom checkbox styles */
.custom-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #475569;
  border-radius: 3px;
  background: #334155;
  cursor: pointer;
  position: relative;
}

.custom-checkbox:checked {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.custom-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
}

/* Loading spinner */
.spinner {
  border: 2px solid #334155;
  border-top: 2px solid #8b5cf6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* File upload area */
.upload-area {
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #64748b;
}

.upload-area.drag-over {
  border-color: #8b5cf6;
  background-color: rgba(139, 92, 246, 0.1);
}

/* Form inputs */
input[type="number"],
input[type="date"],
select,
textarea {
  background: #334155;
  border: 1px solid #475569;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
}

input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Button hover effects */
button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #health-chart {
    max-height: 300px;
  }
}
