* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7fafc;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 2rem;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.currency, .symbol {
    position: absolute;
    color: #718096;
    padding: 0 0.75rem;
}

.currency {
    left: 0;
}

.symbol {
    right: 0;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

input[type="text"] {
    padding-left: 2rem;
}

.required {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    border-color: #4299e1;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.toggle-group {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.toggle, .rate-toggle {
    width: 50px;
    height: 48px;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    flex-shrink: 0;
}

.toggle:hover, .rate-toggle:hover {
    background: #f7fafc;
    border-color: #4299e1;
    color: #2d3748;
}

.toggle.active, .toggle:active, .rate-toggle:active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.action-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1rem;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 56px;
}

.action-button:hover {
    background: #3182ce;
}

.hidden {
    display: none;
}

.result-item {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 4px;
}

.schedule-container {
    margin-top: 1rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: bold;
    color: #2d3748;
}

tr:nth-child(even) {
    background-color: #f7fafc;
}

.rate-adjusters {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.income-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background-color: #f9f9f9;
}

.income-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
}

.income-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.income-grid .input-group {
    margin-bottom: 0;
}

.debts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.debts-grid .input-group {
    margin-bottom: 0;
} 