/* Custom CSS for Leasing Analyzer */

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Score badges */
.score-excellent { 
    background-color: #10B981; 
    color: white; 
}
.score-good { 
    background-color: #059669; 
    color: white; 
}
.score-fair { 
    background-color: #F59E0B; 
    color: white; 
}
.score-poor { 
    background-color: #EF4444; 
    color: white; 
}

/* Decision badges */
.decision-approved {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.decision-conditional {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.decision-manual {
    background-color: #FED7AA;
    color: #9A3412;
    border: 1px solid #EA580C;
}

.decision-rejected {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* Progress bars */
.progress-bar {
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease-in-out;
    border-radius: 9999px;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Form enhancements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #EF4444;
}

/* Table enhancements */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.data-table th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.data-table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
