/*
 * ToolLab Main Stylesheet
 * Extracted from inline styles for better caching
 */

/* Glass Navigation */
.glass-nav {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Soft Shadow Effect */
.soft-shadow {
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.05);
}

.dark .soft-shadow {
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.4);
}

.soft-shadow-lg {
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.1);
}

.dark .soft-shadow-lg {
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

/* Material Icons Configuration */


/* ==========================================
   FOOTER STYLES - Modern Redesign
   ========================================== */

.site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.dark .site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid #1e293b;
}

/* Gradient Accent Line */
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, #4CAF7A 0%, #2d8659 50%, #4CAF7A 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

/* Main Footer Layout */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

/* Brand Section */
.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  max-width: 300px;
}

.dark .footer-brand-desc {
  color: #94a3b8;
}

/* Badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.footer-badge-primary {
  background: rgba(76, 175, 122, 0.1);
  color: #4CAF7A;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #4CAF7A;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.footer-badge-secondary {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.dark .footer-badge-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .social-icon {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

.social-icon:hover {
  background: #4CAF7A;
  color: #fff;
  border-color: #4CAF7A;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 122, 0.3);
}

.dark .social-icon:hover {
  background: #4CAF7A;
  color: #fff;
  border-color: #4CAF7A;
}

/* Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e293b;
  margin-bottom: 16px;
}

.dark .footer-heading {
  color: #f1f5f9;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.dark .footer-link-list a {
  color: #94a3b8;
}

.footer-link-list a:hover {
  color: #4CAF7A;
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.dark .footer-bottom {
  border-top-color: #1e293b;
}

.footer-copyright {
  font-size: 13px;
  color: #94a3b8;
}

.dark .footer-copyright {
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dark .footer-bottom-links a {
  color: #64748b;
}

.footer-bottom-links a:hover {
  color: #4CAF7A;
}

.footer-divider-dot {
  color: #cbd5e1;
}

.dark .footer-divider-dot {
  color: #475569;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4CAF7A 0%, #2d8659 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(76, 175, 122, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(76, 175, 122, 0.5);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================
   FOOTER MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .footer-container {
    padding: 32px 20px 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-section {
    align-items: center;
    text-align: center;
  }

  .footer-brand-desc {
    max-width: 100%;
    text-align: center;
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
  }

  .footer-heading {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .footer-link-list {
    gap: 10px;
  }

  .footer-link-list a {
    font-size: 13px;
  }

  .footer-link-list a:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-column:last-child {
    grid-column: span 2;
    text-align: center;
  }

  .footer-column:last-child .footer-link-list {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

/* ==========================================
   KEEP INVOICE TOGGLE - Professional Design
   ========================================== */

.keep-invoice-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .toggle-card {
  background: #1e293b;
  border-color: #334155;
}

.toggle-card:hover {
  border-color: #4CAF7A;
  box-shadow: 0 4px 12px rgba(76, 175, 122, 0.15);
}

.toggle-card:has(input:checked) {
  border-color: #4CAF7A;
  background: rgba(76, 175, 122, 0.05);
}

.dark .toggle-card:has(input:checked) {
  background: rgba(76, 175, 122, 0.1);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-card:has(input:checked) .toggle-switch {
  background: #4CAF7A;
}

.toggle-card:has(input:checked) .toggle-switch::after {
  transform: translateX(20px);
}

.dark .toggle-switch {
  background: #475569;
}

/* Toggle Content */
.toggle-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.dark .toggle-title {
  color: #f1f5f9;
}

.toggle-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.2;
}

.dark .toggle-desc {
  color: #94a3b8;
}

/* ==========================================
   UPLOAD AREA MOBILE STYLES
   ========================================== */

/* Mobile Upload Zone Optimization */
@media (max-width: 768px) {
  .upload-zone {
    padding: 32px 20px !important;
  }

  .upload-zone .w-20 {
    width: 56px !important;
    height: 56px !important;
  }

  .upload-zone .text-4xl {
    font-size: 28px !important;
  }

  .upload-zone h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .upload-zone p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .upload-zone button {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 15px !important;
  }

  .upload-zone .text-xs {
    font-size: 10px !important;
    margin-top: 16px !important;
  }

  /* Toggle Card Mobile */
  .keep-invoice-toggle {
    margin-bottom: 20px;
  }

  .toggle-card {
    width: 100%;
    max-width: 260px;
    padding: 12px 16px;
    gap: 12px;
  }

  .toggle-switch {
    width: 40px;
    height: 22px;
  }

  .toggle-switch::after {
    width: 18px;
    height: 18px;
  }

  .toggle-card:has(input:checked) .toggle-switch::after {
    transform: translateX(18px);
  }

  .toggle-title {
    font-size: 13px;
  }

  .toggle-desc {
    font-size: 11px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .toggle-card {
    max-width: 100%;
    padding: 10px 14px;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.2s ease-out forwards;
}