/* app/css/coast-fire-calculator.css */
/* Coast FIRE Calculator - Custom Styles */

/* Input Styles */
.fire-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.fire-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.fire-input:hover {
    border-color: #a78bfa;
}

/* Number Input Customization */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-outer-spin-button:hover {
    opacity: 1;
}

/* Select Dropdown Styling */
select.fire-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    appearance: none;
}

/* Result Section */
#resultSection {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projection Bar Animation */
#projectionBars > div > div {
    transition: width 1.5s ease-in-out;
}

/* Error Message */
#errorDisplay {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fire-input {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
    
    #resultSection .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Print Styles */
@media print {
    .fire-input,
    button:not(.no-print),
    .bg-purple-600,
    .no-print {
        display: none !important;
    }
    
    .fire-input {
        border: none;
        background: transparent;
        padding: 0;
    }
    
    select.fire-input {
        appearance: none;
        background: transparent;
    }
    
    #resultSection {
        display: block !important;
    }
    
    .hidden {
        display: block !important;
    }
}

/* Focus Ring */
*:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Disabled Button State */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Result Cards */
.result-card {
    transition: all 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Fire Type Badge */
.fire-type-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Color Classes for FIRE Types */
.fire-coast { background-color: #10b981; color: white; }
.fire-lean { background-color: #3b82f6; color: white; }
.fire-barista { background-color: #f59e0b; color: white; }
.fire-fat { background-color: #ef4444; color: white; }
.fire-standard { background-color: #7c3aed; color: white; }
.fire-full { background-color: #8b5cf6; color: white; }

/* Table Row Hover Effect */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f5f3ff;
}

/* Projection Bar Text */
#projectionBars .bg-blue-500,
#projectionBars .bg-green-500,
#projectionBars .bg-purple-600 {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.7rem;
}

/* Responsive Table */
@media (max-width: 640px) {
    table {
        font-size: 0.7rem;
    }
    
    table th,
    table td {
        padding: 0.25rem 0.5rem;
    }
}