/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #e0e0e0;
}

.wrapper {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    margin-bottom: 30px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.total-amount-container, .user-amount-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.total-amount-container:hover, .user-amount-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
    color: #e0e0e0;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

button.submit {
    background: #00d4ff;
    color: #1a1a1a;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button.submit:hover {
    background: #00b8d4;
    transform: scale(1.05);
}

.hide {
    display: none;
}

.error {
    color: #ff5555;
    font-size: 14px;
    margin-bottom: 10px;
}

.output-container {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.output-container div {
    text-align: center;
    flex: 1;
}

.output-container p {
    font-size: 18px;
    color: #00d4ff;
}

.output-container span {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
    color: #e0e0e0;
}

.list {
    margin-top: 30px;
}

.list-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.sublist-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.sublist-content:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product, .amount {
    font-size: 16px;
    color: #e0e0e0;
}

button.edit, button.delete {
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

button.edit:hover {
    color: #00b8d4;
    transform: scale(1.1);
}

button.delete:hover {
    color: #ff5555;
    transform: scale(1.1);
}

/* Scrollbar Styling */
.list-container::-webkit-scrollbar {
    width: 8px;
}

.list-container::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 10px;
}

.list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .sub-container {
        flex-direction: column;
    }

    .output-container {
        flex-direction: column;
        gap: 15px;
    }

    .wrapper {
        padding: 15px;
    }
}