body {
  font-family: "Inter", sans-serif;
}

/* Hide browser's default password reveal button to prevent duplicates */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}
.chart-container {
  position: relative;
  height: 220px;
  display: flex;
}
canvas {
  max-width: 100%;
}
.button {
  color: #1570ef;
}
.report-button {
  color: #4b5563;
  border: 1px solid #e5e7eb;
  background-color: white;
  border-radius: 0.375rem;
}
.report-button:disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
  background-color: #f9fafb;
  /* cursor: not-allowed; */
  opacity: 0.6;
}

/* .report-button:hover {
  background-color: #16429b;
  color: white;
} */

.bg-signup {
  color: #194185;
  color: #1570ef;
}

.bg-bulk-button {
  color: #b2ddff;
  color: #fecdca;
}

/* .spiral {
    background-image: url("./img/spiral.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
} */

/* Custom Legend Styling */
#pieChart {
  position: relative;
}

/* This adds more spacing between the circle and text in the legend */
#pieChart + ul.chart-legend li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

#pieChart + ul.chart-legend li span.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px; /* Increased spacing between circle and text */
  display: inline-block;
}

/* Container and slide structure */
.slider-container {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Card styling */
.card {
  background-color: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Chart animations */
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* Dot indicators */
.dot-indicator {
  height: 0.5rem;
  width: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.dot-indicator.active {
  width: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
}

/* Navigation buttons */
.prev-btn,
.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    padding: 12px;
  }

  .slider-container {
    min-height: 500px;
  }
}
.slide {
  flex-shrink: 0;
  width: 100%;
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}

/* Form element styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.form-select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.form-textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  min-height: 6rem;
  transition: border-color 0.15s ease-in-out;
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* Upload area styles */
.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #9ca3af;
}

/* File item styles */
.file-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.file-item:last-child {
  border-bottom: none;
}

/* File icon base styles */
.file-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  margin-right: 0.75rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Custom file type icons using images */
.file-icon.pdf {
  background-image: url("../images/pdf.png");
  /* No need for text content since we're using an image */
  color: transparent;
}

.file-icon.mp4 {
  background-image: url("../images/mp4.png");
  color: transparent;
}

.file-icon.mp3 {
  background-image: url("../images/mp3.png");
  color: transparent;
}

/* Fallback styles if image fails to load */
.file-icon.pdf[style*="error" i] {
  background-color: #ef4444;
  color: white;
}

.file-icon.mp4[style*="error" i] {
  background-color: #3b82f6;
  color: white;
}

.file-icon.mp3[style*="error" i] {
  background-color: #ec4899;
  color: white;
}

/* Progress bar styles */
.progress-bar {
  width: 100%;
  height: 8cap;
  background-color: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #3b82f6;
}

/* Button styles */
.btn-primary {
  background-color: #3b82f6;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: white;
  color: #374151;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  transition: background-color 0.15s ease-in-out;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

.btn-document {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.disabled-button {
  opacity: 0.7;
  cursor: not-allowed;
}

.upload-progress {
  width: 100%;
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.upload-progress-bar {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

/* -----------Investors Dashboard--------------- */
/* Custom styles to complement Tailwind CSS */

/* Smooth transitions for elements */
.transition {
  transition: all 0.3s ease;
}

/* Custom focus styles */
input:focus,
select:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Progress bar custom styling */
.progress-line {
  height: 2px;
  transition: width 0.5s ease;
}

/* Override Tailwind font settings with system fonts */
/* body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
} */

/* Custom placeholder styling */
::placeholder {
  color: #a0aec0;
  opacity: 1;
}

/* File upload button hover effect */
.upload-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

/* Custom date picker styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23a0aec0" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
  cursor: pointer;
}

/* Make sure file icons align properly */
.file-icon {
  display: inline-flex;
  align-items: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .progress-step-text {
    display: none;
  }
}

/* Animation for success checkmark */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.checkmark-animate {
  animation: checkmark 0.5s ease-in-out forwards;
}

/* Custom styles for document preview */
.document-preview {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.document-preview-content {
  aspect-ratio: 8.5 / 11;
  background-color: #f7fafc;
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
      box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.pulse-marker {
  animation: pulse 2s infinite;
}

/* ============================================ */
/* PAGE TRANSITION & LOADING EFFECTS */
/* ============================================ */

/* Page Transition Overlay - Subtle & Non-Intrusive */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-transition-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

/* Loading Spinner - Modern & Subtle */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Progress Bar at Top */
.page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  z-index: 100000;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Content Fade In Animation */
.page-content {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton Loading (for when content is loading) */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Smooth link hover with ripple effect */
a.nav-link-animated {
  position: relative;
  overflow: hidden;
}

a.nav-link-animated::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

a.nav-link-animated:hover::after {
  width: 300px;
  height: 300px;
}

/* Loading dots animation */
.loading-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: loading-dot 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-dot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}
