/* Custom Styles for TETFund NRF Simulator */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles for accessibility */
*:focus {
    outline: 2px solid #008751;
    outline-offset: 2px;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Gradient text utility */
.text-gradient-green {
    background: linear-gradient(135deg, #008751 0%, #006633 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom card hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form input styles for consistency */
.input-nrf {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-nrf:focus {
    border-color: #008751;
    box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.1);
    outline: none;
}

/* Button styles */
.btn-nrf-primary {
    background-color: #008751;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.btn-nrf-primary:hover {
    background-color: #006633;
}

.btn-nrf-secondary {
    background-color: transparent;
    color: #008751;
    border: 2px solid #008751;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-nrf-secondary:hover {
    background-color: #e8f5e9;
}

/* Step progress bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step-item.active::after {
    background-color: #008751;
}

.step-item.completed::after {
    background-color: #008751;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.step-item.active .step-number {
    background-color: #008751;
    color: white;
}

.step-item.completed .step-number {
    background-color: #008751;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.step-item.active .step-label {
    color: #008751;
    font-weight: 600;
}

/* Budget table styles */
.budget-table {
    width: 100%;
    border-collapse: collapse;
}

.budget-table th {
    background-color: #008751;
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.budget-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.budget-table tr:last-child td {
    border-bottom: none;
}

.budget-table tfoot tr {
    background-color: #f9fafb;
    font-weight: 700;
}

.budget-table tfoot td {
    border-top: 2px solid #008751;
}

/* Warning/Alert styles */
.alert-warning {
    background-color: #fef3c7;
    border-left: 4px solid #d97706;
    padding: 1rem;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d1fae5;
    border-left: 4px solid #008751;
    padding: 1rem;
    border-radius: 0.375rem;
}

.alert-error {
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 1rem;
    border-radius: 0.375rem;
}

/* Responsive table container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Print styles for proposal */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .print-only {
        display: block !important;
    }
}