/* GIAO DIỆN SOFT BRUTALISM - TVM CALCULATOR */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    border: 3px solid #111111;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #111111;
    padding: 30px;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

h2.tool-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 900;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.settings-grid {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 3px dashed #111111;
}

.full-width {
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: 3px solid #111111;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    background-color: #f9f9f9;
    box-shadow: 3px 3px 0px #111111;
    transition: box-shadow 0.2s, background-color 0.2s, transform 0.1s;
}

.input-group input:focus, .input-group select:focus {
    background-color: #ffffff;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #111111;
}

.input-group input:disabled {
    background-color: #e0e0e0;
    color: #555;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #777;
    transform: translate(3px, 3px);
}

.action-buttons {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.action-buttons button {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 15px;
    border: 3px solid #111111;
    border-radius: 8px;
    box-shadow: 4px 4px 0px #111111;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
    color: #111111;
}

.action-buttons button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #111111;
}

.btn-calculate { background-color: #fdfd96; } /* Pastel Yellow */
.btn-clear { background-color: #eceae4; } /* Light Gray */

/* Khu vực hiển thị kết quả */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-box {
    background-color: #e2f0cb; /* Pastel Yellow-Green */
    border: 3px solid #111111;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.05);
}

.result-label {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.tvm-output {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #e05a47; /* Đỏ nhạt */
    word-break: break-word;
    line-height: 1.2;
    text-shadow: 2px 2px 0px #fff;
}

.tvm-output .empty-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(17,17,17,0.5);
    text-shadow: none;
    font-weight: 800;
}

.tvm-detail {
    margin-top: 15px;
    font-weight: 700;
    color: #555;
    font-size: 1rem;
}

.history-box {
    padding: 20px;
    background-color: #f9f9f9;
    border: 3px dashed #111111;
    border-radius: 8px;
}

.history-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.history-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.history-box li {
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.history-box li:last-child {
    border-bottom: none;
}

.highlight {
    color: #e05a47;
    font-weight: 800;
}

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .action-buttons { grid-template-columns: 1fr; }
    .tvm-output { font-size: 2rem; }
}