/* ================================================
   TANKAS APP - CUSTOM STYLES
   ================================================ */

/* Base Styles */
body {
  min-height: max(884px, 100dvh);
}

/* Loading Spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #38e07b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { 
    transform: rotate(0deg); 
  }
  100% { 
    transform: rotate(360deg); 
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
  background-color: #38e07b;
  color: #0e1a13;
}

.toast.error {
  background-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hero Gradient Overlay */
.hero-overlay {
  background: linear-gradient(
    180deg, 
    rgba(18, 32, 23, 0.7) 0%, 
    rgba(18, 32, 23, 0.3) 100%
  );
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg, 
    #f0f0f0 25%, 
    #e0e0e0 50%, 
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dark .skeleton {
  background: linear-gradient(
    90deg, 
    #2d3748 25%, 
    #1a202c 50%, 
    #2d3748 75%
  );
  background-size: 200% 100%;
}

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

/* Text Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles */
input:focus,
button:focus {
  outline: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: #38e07b;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2dc76a;
}

/* Dark Mode Scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1a202c;
}

.dark ::-webkit-scrollbar-thumb {
  background: #38e07b;
}

/* Modal Animation */
#signupModal,
#loginModal {
  backdrop-filter: blur(4px);
}

/* Button Hover Effects */
button {
  transition: all 0.2s ease-in-out;
}

button:active {
  transform: scale(0.98);
}

/* Card Hover Effects */
.shadow-md {
  transition: box-shadow 0.3s ease-in-out;
}

.shadow-md:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg, 
      rgba(18, 32, 23, 0.8) 0%, 
      rgba(18, 32, 23, 0.5) 100%
    );
  }
}

/* Loading State for Buttons */
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Material Icons Alignment */
.material-symbols-outlined {
  vertical-align: middle;
}

.logo_text {
    color: white;
}

/* ================================================
   TANKAS APP - CUSTOM STYLES
   ================================================ */

/* Global body styles (from your original HTML) */
body {
    min-height: max(884px, 100dvh);
}

/* Optional: Custom scrollbar styling for the image carousel */
.image-carousel {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.image-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}