body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fa;
    color: #333;
}

.navbar {
    background-color: #343a40;
}

.navbar .nav-link {
    color: #fff !important;
}

.container {
    max-width: 900px;
}

h2, h3 {
    color: #007bff;
}

.btn-primary, .btn-danger {
    font-weight: bold;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
}

.textarea-container {
    position: relative;
    margin-bottom: 20px;
}

#text-box {
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #f9f9f9;
}

#copy-btn {
    margin-top: 10px;
}

/* Loader */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9999;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1rem;
    color: #333;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 15px 0;
}

footer p {
    margin: 0;
}



.btn-icon {
    background-color: red;
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-icon:hover {
    background-color: darkred;
}

.btn-icon i {
    margin: 0;
}

/* ------------------------------ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
}

/* ----------------------contador -------------------- */

/* Estilo do timer moderno */
.timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #FFDD57; /* Tom de laranja vibrante */
    text-align: center;
    background-color: #1E1E1E;
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    width: fit-content;
    margin: 20px auto;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.timer-display.show {
    opacity: 1;
    transform: scale(1);
}

.timer-display.hide {
    opacity: 0;
    transform: scale(0.5);
}

.timer-display span {
    display: block;
    font-size: 0.8rem;
    color: #FFEE88;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ---------------controle de audio------------------- */

/* Estilo personalizado para o elemento de áudio */
audio {
    /* width: 100%;
    height: 40px; */
    background-color: #333; /* Cor de fundo combinando com o restante da UI */
    color: #FFDD57; /* Cor do texto e controles */
    /* border: 2px solid #FFDD57; Combinação com o estilo dos botões */
    border-radius: 10px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #FFDD57; /* Cor dos ícones de play/pause */
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider {
    background-color: #FFDD57;
}

audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #FFDD57; /* Cor do tempo */
}

/* Hover effect para os controles */
audio:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}
