/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    text-align: center;
}

header {
    background: linear-gradient(to right, #007a4d, #ffb400);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

header img {
    max-width: 300px;
    height: auto;
}

.current-vat-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.current-vat {
    font-size: 18px;
    font-weight: bold;
    color: #007a4d;
}

.current-vat.highlight {
    color: red;
}

.settings-icon {
    font-size: 30px;
    cursor: pointer;
    color: #007a4d;
    margin-left: 10px;
}

.container {
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    justify-content: space-between; /* Align horizontally */
    align-items: center; /* Align vertically */
    margin: 15px 0;
    padding: 10px;
    border-radius: 10px;
}

.input-group label {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin-right: 10px;
}

.input-group input {
    flex: 1.5;
    min-width: 120px; /* Ensure inputs are wide enough */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    text-align: right;
}

.plus-vat-group {
    border: 2px solid;
    border-image: linear-gradient(to right, blue, lightblue) 1;
    border-radius: 10px;
    padding: 10px;
    margin: 15px 0;
}

.minus-vat-group {
    border: 2px solid;
    border-image: linear-gradient(to right, red, pink) 1;
    border-radius: 10px;
    padding: 10px;
    margin: 15px 0;
}

.diff-input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    outline: none;
    border: 1px solid #ddd;
    text-align: right;
    min-width: 100px;
}

.instructions {
    font-size: 12px;
    color: #007a4d;
    margin-top: 10px;
}

footer {
    margin-top: 20px;
    color: #777;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    font-size: 18px;
    margin-bottom: 10px;
}

.modal input, .modal select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.modal button {
    padding: 10px;
    background-color: #007a4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.modal button:hover {
    background-color: #005c38;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

@media (max-width: 600px) {
    header img {
        max-width: 200px;
    }

    .input-group input {
        font-size: 14px;
    }

    .current-vat {
        font-size: 16px;
    }
}