/* Custom styles for Business Tax Calculator */
body {
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PWA specific styles */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Input focus styles */
input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
.vat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tab styles */
.tab-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.tab-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.tab-active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Tax threshold button styles */
.tax-threshold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tab content transitions */
.tab-content {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Animation for results */
#vatAmount, #netAmount {
  transition: all 0.3s ease;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Error state */
.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

/* Success feedback */
.success-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Mobile optimization */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .bg-gray-50 { background-color: #0f172a; }
  .bg-white { background-color: #1e293b; }
  .text-gray-800 { color: #f1f5f9; }
  .text-gray-700 { color: #cbd5e1; }
  .text-gray-600 { color: #94a3b8; }
  .text-gray-500 { color: #64748b; }
  .border-gray-300 { border-color: #334155; }
}

/* Accessibility improvements */
.vat-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}