:root {
    --primary: rgba(96, 165, 250, 0.8);
    --primary-hover: rgba(96, 165, 250, 1);
    --primary-light: rgba(96, 165, 250, 0.1);
    --accent: rgba(74, 222, 128, 0.8);
    --accent-light: rgba(74, 222, 128, 0.1);
    --danger: rgba(248, 113, 113, 0.8);
    --danger-light: rgba(248, 113, 113, 0.1);
    --card-bg: rgba(15, 15, 15, 0.6);
    --card-border: rgba(45, 45, 45, 0.6);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(156, 163, 175, 0.9);
}

body {
    background-color: #000;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(30, 64, 175, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(30, 64, 175, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.05) 0%, transparent 60%);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
}

/* Glass effect */
.glass {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 4px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Card and sections styling */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Button styling */
button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Button state classes */
.processing-btn {
    display: flex;
}

.loading-btn {
    display: none;
}

/* Specific button styles */
button[variant="outline"] {
    border-width: 1px;
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Button color variants */
button[variant="outline"].bg-blue-400\/10:hover {
    background-color: rgba(96, 165, 250, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
}

button[variant="outline"].bg-green-400\/10:hover {
    background-color: rgba(74, 222, 128, 0.2) !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
}

button[variant="outline"].bg-red-400\/10:hover {
    background-color: rgba(248, 113, 113, 0.2) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
}

/* Spinner animation */
.spinner {
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation */
.pulse {
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    animation: pulse 2.5s infinite;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    pointer-events: none;
}

/* Float animation */
.float { 
    animation: float 4s ease-in-out infinite; 
}

/* Image upload area */
label[for^="file-upload"] {
    border-radius: 0.75rem;
    border: 1px dashed rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.05);
    transition: all 0.3s ease;
}

label[for^="file-upload"]:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

/* Results display */
[id$="-model-results"] {
    transition: all 0.3s ease;
}

[id$="-model-results"] img {
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

[id$="-model-results"] img:hover {
    transform: scale(1.02);
}

/* Alert styles */
[variant="destructive"] {
    background-color: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
}

[variant="default"] {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
}

/* Result section borders */
.border-blue-400\/20 {
    border-color: rgba(96, 165, 250, 0.2);
}

.border-blue-400\/30 {
    border-color: rgba(96, 165, 250, 0.3);
}

/* Gradient backgrounds */
.from-blue-400\/10.to-blue-400\/5 {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
}

#image-modal {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.animate-in {
  animation-duration: 300ms;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fadeIn;
}

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

/* Risk level colors */
.risk-high {
  background-color: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.5);
}

.risk-medium {
  background-color: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.5);
}

.risk-low {
  background-color: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.risk-none {
  background-color: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Minimize/Maximize transitions */
.section-toggle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Add a pulsing effect to indicate clickable regions */
.section-image {
  position: relative;
}

.section-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  animation: pulse 2s infinite;
  pointer-events: none;
}

.tab-content {
    transition: all 0.3s ease-out;
    animation: fadeIn 0.3s ease-out;
}

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

.tab-active {
    position: relative;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}