:root {
    --roxo: #8A2BE2;
    --verde: #32CD32;
    --vermelho: #FF4500;
    --amarelo: #FFD700;
    --fundo: linear-gradient(45deg, #1ae0e0, #B2EBF2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--fundo);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Roboto', sans-serif;
    color: var(--roxo);
    font-size: 3rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.subtitulo {
    color: var(--roxo);
    font-weight: bold;
}

.card {
    background: rgb(218, 135, 135);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h2 {
    color: var(--roxo);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.seletor-produto {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

select {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--roxo);
    border-radius: 10px;
    font-size: 1rem;
}

#visualizador-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--amarelo);
}

#visualizador-img img {
    max-width: 100%;
    max-height: 100%;
}

.botoes-controle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.entrada, .saida {
    padding: 15px;
    border-radius: 10px;
}

.entrada {
    background: rgba(35, 185, 35, 0.1);
    border-top: 5px solid var(--verde);
}

.saida {
    background: rgba(255, 69, 0, 0.1);
    border-top: 5px solid var(--vermelho);
}

h3 {
    color: var(--roxo);
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.verde {
    background: var(--verde);
    color: white;
}

.vermelho {
    background: var(--vermelho);
    color: white;
}

#lista-estoque {
    margin-top: 20px;
}

.item-estoque {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid var(--roxo);
}

.item-estoque img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 50%;
}

.total {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed var(--roxo);
    font-size: 1.2rem;
}

#valor-total {
    color: var(--verde);
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .botoes-controle {
        grid-template-columns: 1fr;
    }
    
    .seletor-produto {
        flex-direction: column;
    }
}