:root {
    /* Primary colors - changed from green to blue */
    --primary-color: #0066B3;     /* Changed from green to ATO blue */
    --primary-light: #00A9CE;     /* Changed to accent teal for lighter shade */
    --primary-dark: #004F8A;      /* Changed to dark blue */
    
    /* Secondary colors - mapped to grays */
    --secondary-color: #333333;   /* Changed to dark gray */
    --secondary-light: #666666;   /* Changed to medium gray */
    --secondary-dark: #222222;    /* Darker version of dark gray */
    
    /* Accent color - changed from yellow to green */
    --accent-color: #00A651;      /* Changed to ATO green */
    
    /* Text and background colors - kept mostly the same */
    --text-light: #FFFFFF;        /* Kept white */
    --text-dark: #000000;         /* Changed to black */
    --background-light: #F5F5F5;  /* Matched to light gray */
    --background-white: #FFFFFF;  /* Kept white */
    --border-color: #E0E0E0;      /* Kept similar light border */
    
    /* Notification colors */
    --error-color: #D32F2F;       /* Kept red for errors */
    --success-color: #00A651;     /* Changed to ATO green */
    
    /* Chart colors - updated to match new theme */
    --chart-income-tax: #0066B3;  /* Changed to primary blue */
    --chart-medicare: #00A651;    /* Changed to primary green */
    --chart-surcharge: #D32F2F;   /* Kept red */
    --chart-take-home: #00A9CE;   /* Changed to accent teal */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--background-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 2px;
    width: 25px;
    background: var(--secondary-color);
    margin-bottom: 5px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Calculator */
.calculator-wrapper {
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    padding: 2rem;
}

.tax-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calculator-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(96, 173, 94, 0.2);
}

/* Updated Tax Result Banner styling */
.tax-result-banner {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    padding: 20px;
    text-align: center;
    margin: 0 auto 25px;
    position: sticky;
    top: 80px;
    z-index: 90;
    width: 80%;
    max-width: 400px;
    transition: background-color 0.3s ease;
}

.tax-result-banner h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tax-result-banner span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 5px 0;
}

/* Medicare Toggle Styling */
.medicare-toggle {
    margin-top: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
}

.toggle-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.3);
    cursor: pointer;
}

.toggle-text {
    flex-grow: 1;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-light);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    position: relative;
    cursor: help;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 30px;
    right: -10px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 10px;
    border-radius: 4px;
    width: 250px;
    font-weight: normal;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    line-height: 1.4;
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 22px;
    right: 5px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--secondary-dark);
    z-index: 100;
}

/* Results Container */
.results-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.results-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.results-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.summary-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.summary-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-item.total {
    background-color: var(--primary-color);
    grid-column: span 2;
}

.summary-item.total h3,
.summary-item.total span {
    color: var(--text-light);
}

.summary-item.take-home h3 {
    color: var(--secondary-color);
}

.summary-item.take-home span {
    color: var(--chart-take-home);
}

/* Email Results Section */
.email-results-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.email-opt-in {
    margin-bottom: 1.5rem;
}

.email-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.email-button:hover {
    background-color: var(--primary-dark);
}

.email-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    display: none;
}

.email-status.success {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.email-status.error {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.consent-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.consent-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Content Section */
.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.content-section h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tax-year-inline {
    font-weight: 600;
}

/* Tax Tables */
.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}

.tax-table th,
.tax-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tax-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--secondary-dark);
}

.tax-table tr:hover {
    background-color: #f9f9f9;
}

.note {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Promo Banner */
.promo-banner {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.promo-content h2 {
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.promo-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.promo-button {
    display: inline-block;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.promo-button:hover {
    background-color: var(--secondary-color);
}

/* Explanation Section */
.explanation-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.explanation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.explanation-section h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.1rem;
}

.explanation-section p {
    margin-bottom: 1rem;
}

.explanation-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.explanation-section li {
    margin-bottom: 0.5rem;
}

/* Topics Section */
.topics-section {
    background-color: var(--secondary-light);
    padding: 3rem 0;
    color: var(--text-light);
}

.topics-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.topic {
    display: block;
    padding: 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.topic:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3,
.footer-links h3,
.footer-disclaimer h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-disclaimer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Tax refund (green) and tax payable (red) styling */
.tax-refund {
    color: var(--success-color) !important;
}

.tax-owing {
    color: var(--error-color) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .tax-calculator {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tax-result-banner {
        max-width: 90%;
        margin: 0 auto 25px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-item.total {
        grid-column: auto;
    }
    
    .explanation-section {
        padding: 1rem;
    }
    
    .tax-table {
        font-size: 0.9rem;
    }
    
    .tax-table th,
    .tax-table td {
        padding: 0.6rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .toggle-label {
        flex-wrap: wrap;
    }
    
    .tooltip-icon:hover::after {
        width: 200px;
        right: -80px;
    }
    
/* Mobile styling adjustments */
@media (max-width: 768px) {
    .tax-result-banner {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 350px;
        z-index: 99;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.2);
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .tax-result-banner h3 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }
    
    .tax-result-banner span {
        font-size: 26px;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .calculator-wrapper {
        padding: 1.5rem;
        padding-top: 60px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .breakdown-legend {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tooltip-icon:hover::after {
        width: 180px;
        right: -100px;
    }
    
    .email-results-section {
        padding: 1rem;
    }
    
    /* Even smaller banner for very small screens */
    .tax-result-banner {
        padding: 8px;
    }
    
    .tax-result-banner h3 {
        font-size: 14px;
    }
    
    .tax-result-banner span {
        font-size: 18px;
    }
    
    /* Smaller logo on very small screens */
    .logo h1 {
        font-size: 1.2rem;
    }
}