/* 1) All elements use border-box */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2) Inputs get a custom focus style (inside their border) */
.note-item input[type="number"] {
    /* keep your existing rules… */
    width: 80px;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;

    /* now box-sizing is border-box so that width includes padding+border */
    box-sizing: border-box;
}

.note-item input[type="number"]:focus {
    outline: none;
    /* draw a 2px green ring *inside* the element’s bounds */
    box-shadow: inset 0 0 0 2px rgba(8,127,91,0.6);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 650px;
    margin: auto;
    padding: 1.5rem;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.breakdown-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.note-section {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e8f5f1;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.note-item:nth-child(even) {
    background-color: #dff1ec;
}

.note-item label {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 0.5rem;
}

.note-item input[type="number"] {
    width: 80px;
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-align: right;
}

.submit-btn {
    display: block;
    width: 100%;
    background-color: #087f5b;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #066649;
}

.home-link {
    display: block;
    margin-top: 1rem;
    text-align: center;
    color: #087f5b;
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 600px) {
    .note-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .note-item input[type="number"] {
        width: 100%;
    }
}
