* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f5f1ea, #ebe3d8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.main-box {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.left-section,
.right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h1 {
    font-size: 44px;
    color: #2d2a26;
    letter-spacing: -1px;
}

.sub-text {
    color: #6d665f;
    margin-top: 6px;
    font-size: 16px;
    line-height: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #2d2a26;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #d6d0c8;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    background: #faf9f6;
}

input:focus {
    border-color: #94785d;
    background: white;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2d2a26;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #463f38;
}

.empty-text {
    color: #8a8279;
    font-size: 15px;
}

.person-item {
    background: #faf7f2;
    border: 1px solid #ece5dc;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    color: #2d2a26;
    font-size: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remove-person-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #d96b5f;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}

.remove-person-btn:hover {
    background: #f3e1de;
}

.transaction-item {
    background: #f7f4ef;
    border: 1px solid #e7dfd5;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.transaction-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 15px;
}

.transaction-title {
    font-size: 16px;
    color: #2d2a26;
    font-weight: bold;
}

.transaction-amount {
    color: #6d533c;
    font-size: 15px;
    white-space: nowrap;
}

.transaction-info {
    font-size: 14px;
    color: #7c746b;
    margin-bottom: 14px;
}

.delete-btn {
    padding: 10px 14px;
    border-radius: 8px;
    background: #d96b5f;
    color: white;
    font-size: 13px;
    width: fit-content;
}

.delete-btn:hover {
    background: #b9564b;
}

.summary-item {
    background: #f8f5f0;
    border: 1px solid #e5ddd2;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.summary-name {
    font-size: 15px;
    color: #2d2a26;
    margin-bottom: 6px;
    font-weight: bold;
}

.summary-price {
    color: #6d533c;
    font-size: 14px;
}

@media (max-width: 900px) {
    .main-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    body {
        padding: 16px;
    }

    .card {
        padding: 18px;
    }

    h1 {
        font-size: 34px;
    }

    .transaction-top {
        flex-direction: column;
        gap: 4px;
    }
}