/* 
 * Income Tax Calculator - Custom Styles
 * India FY 2024-25
 */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #157347 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section>.container {
    position: relative;
    z-index: 1;
}

/* Tax Card Animation */
.tax-card {
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.tax-card:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Auth Icon */
.auth-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stat Icon */
.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control.currency-input {
    font-weight: 500;
}

/* Section Headers */
.section-header h5 {
    font-weight: 600;
    margin-bottom: 0;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

/* Custom Badge Styles */
.badge {
    font-weight: 500;
}

/* Table Styles */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

/* Card Styles */
.card {
    border-radius: 12px;
}

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

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer Styles */
footer {
    margin-top: auto;
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .tax-card {
        transform: none;
        margin-top: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .table {
        font-size: 0.875rem;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tax Regime Cards */
.border-start.border-4 {
    border-left-width: 4px !important;
}

/* Input Group Styles */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Profile Avatar */
.profile-avatar {
    font-weight: 600;
}

/* Empty State */
.empty-state-icon {
    opacity: 0.5;
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sticky-top {
        z-index: 1000;
    }
}

/* Live Preview Card */
#livePreview h4,
#livePreview h5 {
    transition: color 0.3s ease;
}

/* Number Formatting */
.currency {
    font-variant-numeric: tabular-nums;
}