/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}
.header-title {
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.language-select {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}
.language-select option {
    color: #333;
}

/* Navigation */
.sidebar-nav .list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-nav .list-group-item:hover {
    background-color: #e9ecef;
    border-left: 3px solid #0d6efd;
    padding-left: 1.5rem;
}

/* E-Services */
.e-services .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.e-services .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

/* Carousel */
.tax-carousel {
    border: 1px solid #dee2e6;
}
.tax-carousel img {
    height: 350px;
    object-fit: cover;
}
.glass-caption {
    backdrop-filter: blur(5px);
    bottom: 2rem;
    left: 10%;
    right: 10%;
    padding-bottom: 1.5rem !important;
}

/* Cards & Widgets */
.welcome-card, .mayor-card, .updates-card {
    transition: box-shadow 0.3s ease;
}
.welcome-card:hover, .mayor-card:hover, .updates-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.updates-card .card-header {
    background: linear-gradient(to right, #dc3545, #b02a37) !important;
}
.update-item a {
    transition: color 0.2s;
}
.update-item a:hover {
    color: #0d6efd !important;
}

/* Footer */
footer {
    border-top: 5px solid #0d6efd;
}
footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Utilities */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Custom Tab Styling for Modal */
.custom-tab-link {
    color: #6c757d;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.custom-tab-link:hover {
    color: #198754;
    border-color: transparent !important;
}

.custom-tab-link.active {
    color: #198754 !important;
    border-bottom-color: #198754 !important;
    background-color: transparent !important;
}
/* Animated Form Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Input Focus Glow & Icon Animation */
.form-floating .form-control:focus, .form-floating .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

.form-floating .form-control:focus ~ label i,
.form-floating .form-select:focus ~ label i {
    color: #198754 !important;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Floating Graphic Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-graphic {
    animation: float 4s ease-in-out infinite;
}

/* Submit Button Pulse */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}
.btn-pulse {
    animation: pulse-green 2s infinite;
}

/* Premium Soft Inputs */
.custom-input {
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.custom-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
.custom-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.15) !important;
    background-color: #fcfdfd;
}

/* Drop Zone */
.drop-zone.dragover {
    background-color: #e8f5e9 !important;
    border-color: #0f5132 !important;
    transform: scale(1.02);
}

/* Detailed SVG Header Animations */
@keyframes svg-spin { 100% { transform: rotate(360deg); } }
@keyframes svg-spin-reverse { 100% { transform: rotate(-360deg); } }
.svg-spin-slow { animation: svg-spin 12s linear infinite; transform-origin: 100px 100px; }
.svg-spin-reverse { animation: svg-spin-reverse 9s linear infinite; transform-origin: 100px 100px; }

@keyframes svg-pulse {
    0% { fill: #dc3545; transform: scale(1); }
    50% { fill: #ff4757; transform: scale(1.4); }
    100% { fill: #dc3545; transform: scale(1); }
}
.svg-pulse-mic { animation: svg-pulse 1.5s infinite; transform-origin: 88px 108px; }

@keyframes svg-float-bubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}
.svg-float-1 { animation: svg-float-bubble 3.5s ease-in-out infinite; transform-origin: 140px 65px; }
.svg-float-2 { animation: svg-float-bubble 4.5s ease-in-out infinite; transform-origin: 55px 50px; animation-delay: 1s; }
