:root {
    --primary: #16A34A;
    --primary-hover: #15803D;
    --secondary: #4ADE80;
    --accent: #DCFCE7;
    --bg: #0A1A0F;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #F0FDF4;
    --text-muted: #86EFAC;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

input, select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.secondary-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

button:active {
    transform: scale(0.98);
}

/* Results Section */
.results-display {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.result-card {
    margin-bottom: 2rem;
    width: 100%;
}

.result-card h3 {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.net-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0.5rem 0;
}

.net-amount-monthly {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item span:last-child {
    font-weight: 600;
}

.detail-item.deduction span:last-child {
    color: #ef4444; /* Red for deductions */
}

.optimization-tip {
    margin-top: 2rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .app-container {
        max-width: 100%;
        padding: 0;
    }

    .glass-panel {
        background: white;
        border: 1px solid #ddd;
        color: black;
        box-shadow: none;
    }

    h1, h3, label, p {
        color: black;
    }

    .net-amount {
        color: #16A34A;
    }

    .primary-btn, .secondary-btn, header p {
        display: none;
    }

    .input-group input, .input-group select {
        border: none;
        background: transparent;
        padding: 0;
        font-weight: bold;
        color: black;
        -webkit-appearance: none;
        pointer-events: none;
    }

    label {
        display: inline-block;
        width: 100px;
    }
}
