@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    background: linear-gradient(120deg, #1e2a3a 0%, #07181f 100%);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}
header {
    width: 100%;
    padding: 36px 0 18px 0;
    background: transparent;
    text-align: center;
}
header h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: none;
    color: #fff;
}
main {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 10px 24px 10px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.input-area, .result, .history {
    background: rgba(12, 34, 40, 0.92);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.27);
    padding: 28px 22px 22px 22px;
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.input-area label {
    font-size: 1.08rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}
textarea {
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.08rem;
    padding: 13px;
    margin-bottom: 16px;
    resize: vertical;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
textarea:focus {
    border: 1.5px solid #fff;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
button {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 10px;
    background: #2ECC71;
    color: #07181f;
    font-weight: bold;
    font-size: 1.13rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(46, 204, 113, 0.5);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    font-family: inherit;
}
button:hover, button:focus {
    background: #58D68D;
    color: #fff;
    box-shadow: 0 4px 32px rgba(46, 204, 113, 0.5);
    transform: translateY(-2px) scale(1.03);
}
button.apagar {
    background: linear-gradient(90deg, #616A6B 60%, #494F50 100%);
    color: #fff;
    margin-top: 14px;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(97, 106, 107, 0.27);
}
button.apagar:hover, button.apagar:focus {
    background: linear-gradient(90deg, #494F50 60%, #616A6B 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(97, 106, 107, 0.33);
    transform: translateY(-2px) scale(1.03);
}
.result h2, .history h2 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}
#resultado {
    font-size: 1.3rem;
    margin: 20px 0 0 0;
    min-height: 36px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 500;
}
.sorteado {
    color: #2ECC71;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(88, 214, 141, 0.5), 0 0 2px #fff;
    letter-spacing: 2px;
    background: #2ECC71;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
ul {
    list-style: none;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
}
li {
    background: linear-gradient(90deg, #142E1F 80%, #07181f 100%);
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 1px 8px rgba(46, 204, 113, 0.13);
    border-left: 4px solid #2ECC71;
    transition: background 0.2s, border 0.2s;
    font-family: inherit;
}
li:last-child {
    margin-bottom: 0;
}
footer {
    width: 100%;
    padding: 22px 10px 10px 10px;
    background: #07181f;
    text-align: center;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.2);
    border-top: 2px solid #2ECC71;
    margin-top: 2rem;
}
footer p {
    margin: 0;
    font-size: 1rem;
    color: #bdbdbd;
    letter-spacing: 1px;
}
.social-icons {
    margin-top: 15px;
    margin-bottom: 8px;
}
.social-icons a {
    color: #fff;
    margin: 0 14px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.2s, text-shadow 0.2s;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}
.social-icons a:hover {
    color: #2ECC71;
    text-shadow: 0 0 18px rgba(46, 204, 113, 0.5), 0 0 2px #fff;
}
.animation-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #07181f;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.result-container {
    text-align: center;
}
.loading-animation {
    width: 100px;
    height: 100px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.result-display {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    animation: result-show 0.5s forwards;
    opacity: 0;
}
.loading-message {
    font-size: 1.2rem;
    color: #bdbdbd;
    margin-top: 20px;
    animation: pulse 1.5s infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes result-show {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
.modal-confirmacao {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: rgba(12, 34, 40, 0.95);
    border: 2px solid #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: modal-fade-in 0.3s forwards;
}
.modal-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #bdbdbd;
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-modal {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}
.btn-modal.confirmar {
    background: #F44336;
    color: #fff;
}
.btn-modal.confirmar:hover {
    background: #d32f2f;
}
.btn-modal.cancelar {
    background: #616A6B;
    color: #fff;
}
.btn-modal.cancelar:hover {
    background: #494F50;
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
    main {
        padding: 0 2px 20px 2px;
        max-width: 98vw;
    }
    .input-area, .result, .history {
        padding: 12px 6px 12px 6px;
        border-radius: 12px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    .result h2, .history h2 {
        font-size: 1.1rem;
    }
    #resultado {
        font-size: 1rem;
    }
}