body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

input, button {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.resultado {
    font-size: 16px;
    color: #2c3e50;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.valor-destaque {
    color: #27ae60;
    font-weight: bold;
}

.valor-imposto {
    color: #e74c3c;
    font-weight: bold;
}

.valor-comissao {
    color: #f39c12;
    font-weight: bold;
}

.valor-imperium {
    color: #2980b9;
    font-weight: bold;
}

.currency-input {
    position: relative;
    margin: 10px 0;
}

.currency-input input {
    padding-left: 35px;
    width: 200px;
}

.currency-input::before {
    content: "R$";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #666;
}

.percentage-input {
    position: relative;
    margin: 10px 0;
}

.percentage-input input {
    padding-left: 40px;
    width: 120px;
}

.percentage-symbol {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: bold;
}

.code-display {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.code-display:hover {
    background-color: #d6eaf8;
}

.copied-feedback {
    color: #27ae60;
    font-size: 12px;
    margin-left: 10px;
    display: none;
}

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

@keyframes shake {
    0% { transform: translate(-50%, -50%) translateX(0); }
    20% { transform: translate(-50%, -50%) translateX(-5px); }
    40% { transform: translate(-50%, -50%) translateX(5px); }
    60% { transform: translate(-50%, -50%) translateX(-5px); }
    80% { transform: translate(-50%, -50%) translateX(5px); }
    100% { transform: translate(-50%, -50%) translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -55%); }
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 18px;
    opacity: 0;
}

.popup.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out, shake 0.4s ease-in-out;
    opacity: 1;
}

.popup.hide {
    animation: fadeOut 0.3s ease-in-out;
    opacity: 0;
}
