/* styles.css */
:root {
    --primary: #000080;
    --secondary: #333333;
    --background: rgb(250, 250, 252);
    --card-bg: #1a2b3c;
    --header-row: #00A499;
    --text-light: #ffffff;
    --border-dark: #222222;
    --summary-text: #8B9CAF;
    --amount-text: #00E5B0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #403E43;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-weight: 500;
}

select, input {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    background: white;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 128, 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    justify-content: center;
}

button {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 250px;
    font-weight: 500;
}

button[type="submit"] {
    background: var(--primary);
    color: white;
}

button[type="reset"] {
    background: var(--secondary);
    color: white;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.results {
    margin-top: 1.5rem;
    display: none;
}

.results.visible {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.summary-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 8px;
    color: var(--text-light);
}

.summary-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.summary-label {
    color: var(--summary-text);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.summary-amount {
    color: var(--amount-text);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

.result-table th {
    background: var(--header-row);
    color: var(--text-light);
    padding: 0.75rem;
    text-align: left;
}

.result-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table .take-home-row {
    background: #2C5282;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

.footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    color: var(--text-light);
    text-align: center;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copyright {
    margin-top: 1rem;
    color: var(--summary-text);
    font-size: 0.8rem;
}

/* Base styles */
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: rgb(250, 250, 252);
}

/* Header styles */
.header {
    background-color: #1a2b3c;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-gray-300 {
    color: rgb(209, 213, 219);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hover\:bg-gray-700:hover {
    background-color: rgb(55, 65, 81);
}

.hover\:text-white:hover {
    color: white;
}

/* Calculator dropdown */
.calculator-dropdown {
    position: relative;
}

.calculator-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-btn i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.calculator-btn.active i {
    transform: rotate(180deg);
}

.calculator-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    margin-top: 0.5rem;
}

.calculator-menu.show {
    display: block;
}

.calculator-menu a {
    color: #374151;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.875rem;
    text-decoration: none;
}

.calculator-menu a:hover {
    background: #f3f4f6;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a2b3c;
    padding: 1rem;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    color: rgb(209, 213, 219);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.mobile-menu a:hover {
    background-color: rgb(55, 65, 81);
    color: white;
}

.mobile-calculator-btn {
    width: 100%;
    background: none;
    border: none;
    color: rgb(209, 213, 219);
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.mobile-calculator-btn:hover {
    background-color: rgb(55, 65, 81);
    color: white;
}

.mobile-calculator-menu {
    display: none;
    padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-calculator-menu.show {
    display: block;
}

/* Container */
.container {
    margin-top: 80px;
    padding: 1.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
}

.calculator-section {
    margin-bottom: 2rem;
}

.blog-section {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.blog-section section {
    margin-bottom: 2.5rem;
}

.blog-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-section p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.blog-section ul, .blog-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.blog-section strong {
    color: var(--secondary);
}



