body {
    background-image: radial-gradient(circle at 1px 1px, #e0e0e0 1px, transparent 0);
    background-size: 10px 10px;
    background-color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#mainDiv {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

#leftDiv, #rightDiv {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    height: fit-content;
}

#leftDiv {
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 10px;
}

#tableDiv {
    overflow-x: auto;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
}

p {
    margin: 0px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.tableInput, #inputDiv input {
    border: none;
    border-bottom: 1px solid grey;
}

.tableInput:focus, #inputDiv input:focus {
    outline: none;
    border-bottom: 2px solid #4299e1;
}

.tableInput:hover, #inputDiv input:hover {
    outline: none;
    border-bottom: 2px solid #4299e1;
}

#rightDiv {
    width: 40%;
}

#operationDiv {
    display: flex;
    flex-direction: row;
}

#inputDiv {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

#controlDiv {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

#inputDiv button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: rgb(255, 174, 0);
    color: white;
    cursor: pointer;
    height: 32px;
}

#inputDiv button:hover {
    background: rgb(238, 163, 2);
    transition: all 0.3s ease;
}

#inputDiv input {
    height: 30px;
    font-size: 13px;
    padding: 0px;
}

#categoryInput {
    height: 32px;
}

#outputDiv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
}

#amountTotal {
    font-weight: bold;
    font-size: 16px;
}

#myChart {
    width: 100% !important;
    height: 412.5px !important;
}

@media (max-width: 1000px) {
    #mainDiv {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0 10px 0;
    }

    #leftDiv, #rightDiv {
        width: 85vw;
    }
    
    .tableInput {
        max-width: 100px;
    }

    #operationDiv {
        gap: 10px;
    }

    #inputDiv {
        width: 60%;
    }

    #controlDiv {
        flex-direction: column;
    }

    #myChart {
        width: 100% !important;
        height: 100% !important;
    }
}