
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    top: 10%;
    left: 60%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.subtitle {
    font-size: 0.8rem;
    color: #00d4ff;
    margin-top: -5px;
}

.animated-icon {
    animation: pulse 2s infinite;
    color: #00d4ff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    border-color: transparent;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Currency Input Styling */
.currency-input {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.currency-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 12px;
    font-size: 1rem;
    min-width: 120px;
}

.currency-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.currency-input input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

/* Budget Planner Styles */
.budget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.budget-input, .budget-visual {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.budget-input h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.budget-input input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.budget-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.expense-categories {
    display: grid;
    gap: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: move;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.category-item i {
    color: #00d4ff;
    font-size: 1.2rem;
}

.category-input {
    margin-left: auto;
    width: 120px;
    margin-bottom: 0 !important;
}

.budget-alerts {
    margin-top: 1rem;
}

.alert {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.alert.danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.budget-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Compare Cities Styles */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.city-selector {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.city-select {
    margin-bottom: 1rem;
}

.city-select label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.city-select select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.city-select select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

.city-select select optgroup {
    background: #0a0a0a;
    color: #00d4ff;
    font-weight: bold;
    padding: 5px;
    margin: 2px 0;
}

.city-select select optgroup option {
    background: #1a1a2e;
    color: #ffffff;
    padding-left: 20px;
    font-weight: normal;
}

.city-select select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Scrollbar styling for select dropdown */
.city-select select::-webkit-scrollbar {
    width: 8px;
}

.city-select select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.city-select select::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.city-select select::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}

.compare-results {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced compare results styling */
#compare-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

#compare-details h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#compare-details p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

#compare-details strong {
    color: #ff00ff;
}

/* Savings Goal Styles */
.savings-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.goal-setup {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.goal-setup h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.goal-setup input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.goal-progress {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-container {
    margin: 2rem 0;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    width: 0%;
    transition: width 1s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.milestones {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.milestone {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
}

.milestone.achieved {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score, .streak {
    font-size: 1.2rem;
    font-weight: bold;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.quiz-option.correct {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.quiz-option.incorrect {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

/* Local Impact Styles */
.local-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.impact-calculator {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-calculator h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.business-type {
    margin: 1rem 0;
}

.business-type label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
}

.impact-visual {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tax Estimator Styles */
.tax-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.tax-input {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-input h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.tax-results {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Currency Exchange Styles */
.currency-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.exchange-calculator {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exchange-calculator h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.exchange-icon {
    display: block;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.5rem;
    color: #00d4ff;
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.currency-chart {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.currency-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.9);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.animated-social {
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.animated-social:hover {
    color: #00d4ff;
    transform: scale(1.2) rotate(10deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .budget-grid,
    .compare-grid,
    .savings-container,
    .local-container,
    .tax-container,
    .currency-container {
        grid-template-columns: 1fr;
    }
    
    .tab-content h2 {
        font-size: 1.5rem;
    }
    
    .city-select select {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .city-select select optgroup {
        font-size: 0.8rem;
    }
    
    .currency-input {
        flex-direction: column;
    }
    
    .currency-select {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .budget-input,
    .budget-visual,
    .city-selector,
    .compare-results,
    .goal-setup,
    .goal-progress,
    .quiz-container,
    .impact-calculator,
    .impact-visual,
    .tax-input,
    .tax-results,
    .exchange-calculator,
    .currency-chart {
        padding: 1rem;
    }
}
