:root {
    --color-primary: #4B69FD;
    --color-secondary: #FFF9EB;
    --color-tertiary: #C4C4C4;
    --color-button: #fe652b;
    --color-button-hover: #e55720;
    --color-text: #444444;
    --color-white: #FFFFFF;
}

/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Banner */
.header-banner {
    flex: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
}

/* Seção de entrada */
.input-section {
    flex: 60%;
    background-color: var(--color-secondary);
    border: 1px solid #000;
    border-radius: 64px 64px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Títulos */
.main-title {
    font-size: 48px;
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
    color: var(--color-white);
}

.section-title {
    font-family: "Inter", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
    text-align: center;
}

/* Contêineres de entrada e botão */
.input-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.input-name {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
}

.button-container {
    width: 300px;
    justify-content: center;
}

/* Estilos de entrada de texto */
.input-title {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #333;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-family: "Merriweather", serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos de botão */
button {
    padding: 15px 30px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    border: 2px solid #000;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.button-add {
    background-color: var(--color-tertiary);
    color: var(--color-text);
    border-radius: 0 25px 25px 0;
}

.button-add:hover {
    background-color: #a1a1a1;
}

/* Listas */
ul {
    list-style-type: none;
    color: var(--color-text);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    margin: 20px 0;
}

.result-list {
    margin-top: 15px;
    color: #05DF05;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

/* Botão de sortear título */
.button-draw {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 40px;
    color: var(--color-white);
    background-color: var(--color-button);
    font-size: 16px;
}

.button-draw img {
    margin-right: 40px;
}

.button-draw:hover {
    background-color: var(--color-button-hover);
}

/* Media Queries para Responsividade - Header */
@media (max-width: 768px) {
    .header-banner {
        padding: 20px 15px 0;
        flex: 35%;
    }
    
    .main-title {
        font-size: 32px;
        text-align: center;
        line-height: 1.2;
    }
    
    .header-banner img {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-banner {
        padding: 15px 10px 0;
        flex: 30%;
    }
    
    .main-title {
        font-size: 32px;
        text-align: center;
        line-height: 1.1;
        padding: 0 10px;
    }
    
    .header-banner img {
        max-width: 70%;
        height: auto;
    }
}

/* Estilos do Modal Dialog */
.modal-dialog {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    min-height: 125px;
    border: none;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0 8px 0 0;
    border-left: 5px solid #e74c3c; /* Faixa vermelha à esquerda */
    transform: translateX(400px); /* Começa fora da tela à direita */
    transition: transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

.modal-dialog[open] {
    transform: translateX(0); /* Posição final quando visível */
    opacity: 1;
}

.modal-dialog.closing {
    transform: translateX(400px); /* Volta para fora da tela */
    opacity: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
}

.modal-body p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

/* Animações */
@keyframes fadeIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsividade do Modal */
@media (max-width: 480px) {
    .modal-dialog {
        width: 90%;
        right: 5%;
        transform: translateX(calc(100vw - 5%)); /* Ajusta para mobile */
    }
    
    .modal-dialog[open] {
        transform: translateX(0);
    }
    
    .modal-dialog.closing {
        transform: translateX(calc(100vw - 5%));
    }
}
