html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', sans-serif;
}

/* Remix Icons Fix */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* Tailwind Utilities */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Custom Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Form Elements */
input[type="email"],
input[type="text"],
input[type="password"] {
  @apply bg-white border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent transition-all duration-200;
}

.btn {
  @apply px-6 py-2 rounded-button transition-all duration-200;
}

.btn-primary {
  @apply bg-primary text-white hover:bg-primary/90;
}

.btn-outline {
  @apply border-2 border-primary text-primary hover:bg-primary hover:text-white;
}

/* Card Styles */
.feature-card {
  @apply bg-white/70 backdrop-blur-sm p-8 rounded-xl shadow-lg border border-white/20 hover:shadow-xl transition-all duration-300;
}

.icon-box {
  @apply w-12 h-12 bg-gradient-to-br from-sky-100 to-white rounded-xl flex items-center justify-center mb-6 transform hover:scale-105 transition-transform duration-300;
}

/* Hero Section */
.hero-gradient {
  @apply bg-gradient-to-r from-white/95 to-white/50;
}

/* Custom Utilities */
.text-gradient {
  @apply bg-clip-text text-transparent bg-gradient-to-r from-sky-500 to-blue-600;
}

.glass-effect {
  @apply bg-white/70 backdrop-blur-sm border border-white/20;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

/* Loading States */
.loading {
  @apply animate-pulse bg-gray-200;
}

/* Error States */
.error-message {
  @apply text-red-500 text-sm mt-1;
}

/* Success States */
.success-message {
  @apply text-green-500 text-sm mt-1;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Detaylı Analiz Sayfası Stilleri */
.analysis-container {
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.chart-container {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-title {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.heatmap-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.problem-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid #ff4757;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 1000;
}

.problem-point:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.metric-card {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metric-title {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}

.recommendations-list {
  list-style-type: none;
  padding: 0;
}

.recommendations-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.recommendations-list li:last-child {
  border-bottom: none;
}

.severity-indicator {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.severity-high {
  background-color: #ffe0e3;
  color: #ff4757;
}

.severity-medium {
  background-color: #fff3cd;
  color: #ffa502;
}

.severity-low {
  background-color: #d4edda;
  color: #28a745;
}

/* Modal Stilleri */
.problem-area-modal .modal-content {
  border-radius: 12px;
  border: none;
}

.problem-area-modal .modal-header {
  background-color: #f8f9fa;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.problem-area-modal .modal-title {
  color: #333;
  font-weight: 600;
}

.problem-area-modal .modal-body {
  padding: 1.5rem;
}

.problem-area-modal .recommendations-list {
  margin-top: 1rem;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  .analysis-container {
    padding: 1rem;
  }

  .chart-container {
    padding: 1rem;
  }

  .heatmap-container {
    height: 300px;
  }

  .metric-value {
    font-size: 1.25rem;
  }
}

.face-map-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.face-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.problem-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.problem-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: rgba(239, 68, 68, 0.8);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease-in-out;
}

.problem-point:hover {
  width: 16px;
  height: 16px;
  background-color: rgba(239, 68, 68, 1);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.severity-bar {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.severity-bar .progress-bar {
  height: 100%;
  background-color: #6366f1;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.recommendations-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 12px;
}

.recommendations-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: #4b5563;
}

.recommendations-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #6366f1;
}