/* Estilos gerais */
:root {
    --primary-color: #4e54ff;
    --primary-glow: #5468ff;
    --secondary-color: #8c43ff;
    --accent-color: #4e80ff;
    --error-color: #ff4e7a;
    --text-color: #ffffff;
    --dark-bg: #0a0b14;
    --card-bg: #13141f;
    --border-color: #2a2d3e;
    --input-bg: #1c1d2b;
    --shadow-color: rgba(80, 100, 255, 0.2);
    --x: 0px;
    --y: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at top right, rgba(94, 86, 255, 0.1), transparent 40%),
                     radial-gradient(circle at bottom left, rgba(126, 78, 254, 0.1), transparent 40%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Cabeçalho */
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(94, 86, 255, 0.3);
}

/* Card principal */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(94, 86, 255, 0.03) 0%, transparent 70%);
    z-index: 0;
}

/* Formulário */
.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 84, 255, 0.2);
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Botão */
.btn-convert {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-convert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

.btn-convert::after {
    content: '';
    position: absolute;
    height: 200px;
    width: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    top: var(--y, 0);
    left: var(--x, 0);
    transform: translate(-50%, -50%);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 84, 255, 0.3);
}

.btn-convert:hover::after {
    opacity: 1;
}

.btn-convert:active {
    transform: translateY(0px);
    box-shadow: 0 3px 8px rgba(78, 84, 255, 0.2);
}

.btn-convert.submitting {
    background-size: 30px 30px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: btn-loading 1s linear infinite;
}

@keyframes btn-loading {
    from { background-position: 0 0; }
    to { background-position: 60px 30px; }
}

/* Mensagens de alerta */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: rgba(255, 78, 122, 0.1);
    border-color: rgba(255, 78, 122, 0.3);
    color: var(--error-color);
}

/* Resultado */
.result {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.result h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.result-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-item {
    background-color: rgba(78, 84, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(78, 84, 255, 0.2);
    padding: 15px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.result-item.show {
    opacity: 1;
    transform: translateY(0);
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 84, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.result-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-glow);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.result-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-glow);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--primary-glow);
}

.result-text {
    padding: 12px;
    background-color: rgba(28, 29, 43, 0.6);
    border-radius: 8px;
    word-wrap: break-word;
    border: 1px solid var(--border-color);
}

/* Rodapé */
footer {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 30px;
}

/* Media queries para responsividade */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
}/* Estilos gerais */
:root {
    --primary-color: #4e54ff;
    --primary-glow: #5468ff;
    --secondary-color: #8c43ff;
    --accent-color: #4e80ff;
    --error-color: #ff4e7a;
    --text-color: #ffffff;
    --dark-bg: #0a0b14;
    --card-bg: #13141f;
    --border-color: #2a2d3e;
    --input-bg: #1c1d2b;
    --shadow-color: rgba(80, 100, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at top right, rgba(94, 86, 255, 0.1), transparent 40%),
                     radial-gradient(circle at bottom left, rgba(126, 78, 254, 0.1), transparent 40%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Cabeçalho */
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(94, 86, 255, 0.3);
}

/* Card principal */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(94, 86, 255, 0.03) 0%, transparent 70%);
    z-index: 0;
}

/* Formulário */
.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 84, 255, 0.2);
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Botão */
.btn-convert {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-convert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 84, 255, 0.3);
}

.btn-convert:active {
    transform: translateY(0px);
    box-shadow: 0 3px 8px rgba(78, 84, 255, 0.2);
}

/* Mensagens de alerta */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: rgba(255, 78, 122, 0.1);
    border-color: rgba(255, 78, 122, 0.3);
    color: var(--error-color);
}

/* Resultado */
.result {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.result h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.result-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-item {
    background-color: rgba(78, 84, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(78, 84, 255, 0.2);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 84, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.result-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-glow);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.result-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-glow);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--primary-glow);
}

.result-text {
    padding: 12px;
    background-color: rgba(28, 29, 43, 0.6);
    border-radius: 8px;
    word-wrap: break-word;
    border: 1px solid var(--border-color);
}

/* Rodapé */
footer {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 30px;
}

/* Media queries para responsividade */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
}