/* Custom Styles for Askly Tax Assistant */

:root {
    --primary-color: #198754; /* Bootstrap success green */
    --secondary-color: #0d6efd; /* Bootstrap primary blue */
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Body & Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Card Customizations */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* AI Assistant Card */
#answer.alert {
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.5s ease;
}

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

/* Quick Question Buttons */
.quick-question {
    transition: all 0.2s ease;
}

.quick-question:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Tax Calculator Result Animation */
#calcResult .alert {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Blog Cards */
.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

/* Footer */
footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Form Input Focus */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Badge Custom */
.badge {
    padding: 0.5em 1em;
}

/* Accordion Custom */
.accordion-button:not(.collapsed) {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
}

/* Pagination Active */
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}