/* Custom CSS Variables and Styles for ROI Calculator */
:root {
    --background: 220 30% 97%;
    --foreground: 215 25% 15%;
    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;
    --primary: 221 83% 25%;
    --primary-foreground: 0 0% 98%;
    --secondary: 210 40% 94%;
    --secondary-foreground: 215 25% 25%;
    --muted: 210 40% 94%;
    --muted-foreground: 215 16% 45%;
    --accent: 43 96% 60%;
    --accent-foreground: 215 25% 15%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    --border: 214 31% 88%;
    --input: 214 31% 88%;
    --ring: 221 83% 25%;
    
    /* Custom ROI Calculator Colors */
    --legal-blue: 221 83% 25%;
    --legal-blue-light: 221 83% 35%;
    --gold: 43 96% 60%;
    --gold-light: 43 96% 70%;
    --success: 142 76% 36%;
    --success-light: 142 76% 46%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--legal-blue)), hsl(var(--legal-blue-light)));
    --gradient-gold: linear-gradient(135deg, hsl(var(--gold)), hsl(var(--gold-light)));
    --gradient-success: linear-gradient(135deg, hsl(var(--success)), hsl(var(--success-light)));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(210 40% 95%));
    
    /* Shadows */
    --shadow-elegant: 0 4px 20px -2px hsl(var(--legal-blue) / 0.15);
    --shadow-card: 0 2px 10px -1px hsl(215 25% 15% / 0.1);
    --shadow-glow: 0 0 30px hsl(var(--gold) / 0.3);
    
    --radius: 0.5rem;
}

/* Base styles */
* {
    border-color: hsl(var(--border));
}

body {
    background: var(--gradient-subtle);
    color: hsl(var(--foreground));
    font-family: system-ui, -apple-system, sans-serif;
}

/* Custom utility classes */
.bg-gradient-subtle {
    background: var(--gradient-subtle);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
    background: var(--gradient-gold);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.text-primary {
    color: hsl(var(--primary));
}

.text-accent-foreground {
    color: hsl(var(--accent-foreground));
}

.bg-primary {
    background-color: hsl(var(--primary));
}

.bg-accent {
    background-color: hsl(var(--accent));
}

.border-primary {
    border-color: hsl(var(--primary));
}

.border-accent {
    border-color: hsl(var(--accent));
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Additional utility classes for better compatibility */
.bg-primary\/5 {
    background-color: hsl(var(--primary) / 0.05);
}

.bg-primary\/10 {
    background-color: hsl(var(--primary) / 0.1);
}

.bg-accent\/10 {
    background-color: hsl(var(--accent) / 0.1);
}

.bg-accent\/20 {
    background-color: hsl(var(--accent) / 0.2);
}

.border-primary\/20 {
    border-color: hsl(var(--primary) / 0.2);
}

.border-primary\/30 {
    border-color: hsl(var(--primary) / 0.3);
}

.border-accent\/20 {
    border-color: hsl(var(--accent) / 0.2);
}

.border-accent\/30 {
    border-color: hsl(var(--accent) / 0.3);
}

/* Custom component styles */
.benefit-card {
    margin-bottom: 1.5rem;
}

.benefit-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.benefit-content {
    transition: all 0.3s ease;
}

.benefit-content.hidden {
    display: none;
}

.benefit-icon.rotated {
    transform: rotate(180deg);
}

/* Input focus styles */
input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Print styles */
@media print {
    body {
        margin: 0;
        padding: 1rem;
        background: white !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .shadow-elegant,
    .shadow-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Animation for collapsible content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-content:not(.hidden) {
    animation: slideDown 0.3s ease;
}

/* Custom scrollbar for modal */
#premissasModal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#premissasModal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#premissasModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#premissasModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading animation */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Tooltip styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.25rem;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 10;
}
