
/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #374151;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

/* Toast Styles */
.toast {
  transition: all 0.3s ease;
  z-index: 1000;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 300px;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toast.success {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.toast.error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.toast.info {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Tab Panel */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Tab Styling */
[data-tab], [data-deploy-tab] {
  transition: all 0.2s ease;
}

/* Form Controls */
input[type="checkbox"] {
  cursor: pointer;
}

/* Login Form Styling */
.login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 2rem;
}

.login-form button {
  position: relative;
  overflow: hidden;
}

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

/* Code Blocks */
pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* Deploy Tab Panes */
.deploy-tab-pane {
  transition: all 0.3s ease;
}

/* Field List Styling */
#fields-list {
  max-height: 300px;
  overflow-y: auto;
}

#fields-list > div {
  transition: all 0.2s ease;
}

#fields-list > div:hover {
  background-color: #f5f5f5;
}

/* Deployment Tabs */
[data-deploy-tab] {
  transition: all 0.2s ease;
}

[data-deploy-tab]:hover {
  transform: translateY(-1px);
}

/* Error states */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Connection Error Indicator */
.connection-error {
  border: 1px solid #ef4444 !important;
  background-color: #fef2f2 !important;
}
