/* CSS selector used to style the scrollbar */
textarea::-webkit-scrollbar {
    background-color: transparent;
    width: 6px;
    border-radius: 10px; 
}

/* Background of the scrollbar except button or resizer */
textarea::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px; 
}

/* Scrollbar itself */
textarea::-webkit-scrollbar-thumb {
    background-color: #6c63ff;
    border-radius: 3px;
}

/* Buttons at the top and bottom of the bar */
textarea::-webkit-scrollbar-button {
    display:none;
}

/* Style to hide the scroll bar */
.hide-scrollbar {
    scrollbar-width: none; /* Hides the scroll bar in Firefox */
    -ms-overflow-style: none; /* Hide the scroll bar in IE/Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0 !important; /* Hides the scrollbar in WebKit (Chrome, Safari) */
}

.font-arial{
    font-family: 'Arial' !important;
}

.font-candara{
    font-family: 'Candara' !important;
}

.font-cursive{
    font-family: 'Cursive' !important;
}

.font-georgia{
    font-family: 'Georgia' !important;
}

.font-poppins{
    font-family: 'Poppins-Light' !important;
}

.font-times{
    font-family: 'Times New Roman' !important;
}

p {
    margin: 0px !important;
    color: white;
    /* modo claro */
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

#page {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

#header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.video-div {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-div video {
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

#title {
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 1.5rem;
    color: white;
    height: 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

#tools {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

#font {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#align {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#page-settings {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background-color: #242424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#tools-placeholder {
    width: 100%;
    height: 60px;
    background-color: #6c63ff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#tools-placeholder .container-fluid {
    width: 100%;
}

#tools-placeholder .btn-dark {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

#tools-placeholder .btn-dark:hover {
    background-color: rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

#tools-placeholder .text-dark {
    color: white !important;
    font-weight: 500;
}

#tools-placeholder .dropdown-menu {
    background-color: #242424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
}

#tools-placeholder .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    margin: 2px 0;
}

#tools-placeholder .dropdown-item:hover {
    background-color: #6c63ff;
    color: white !important;
}

#content-page {
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

#editor {
    flex: 1;
    height: 100%;
    width: 100%;
    background-color: #1a1a1a;
    position: relative;
}


/* Tema claro */
body[data-theme="light"] {
    background-color: #f8f9fa;
}

#files-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    background-color: rgb(180, 180, 180);
}

#editor-expand-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 10px;
    background-color: rgba(180, 180, 180, 0.509) !important;
}

.btn:active,
.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn:active {
    transform: translateY(2px);
}

.fa-chevron-up,
.fa-chevron-down {
    color: rgba(255, 255, 255, 0.8);
}

.content-editor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

#input-text {
    resize: none;
    width: 100%;
    height: 100%;
    color: white;
    background-color: transparent;
    border: none;
    padding: 2rem;
    font-size: 16px;
    line-height: 1.8;
    transition: all 0.3s ease;
}

#input-text:focus {
    outline: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.02);
}

#input-text::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Estilo do placeholder no tema claro */
body[data-theme="light"] #input-text::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Estilo do placeholder no tema escuro */
body[data-theme="dark"] #input-text::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Efeito hover no placeholder */
#input-text:hover::placeholder {
    opacity: 0.8;
}

/* Efeito focus no placeholder */
#input-text:focus::placeholder {
    opacity: 0.4;
}

.color-gray{
    color: #2E3234;
}

#div-select-color{
    margin-left: 5px;
}

#color-picker{
    opacity: 0; 
    visibility: hidden; 
    position: absolute;
}

#editor:hover .video-div video {
    opacity: 0.4;
}

/* Estilização dos dropdowns */
.dropdown-menu {
    background-color: #242424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    font-family: 'Poppins-Medium', sans-serif;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    margin: 2px 0;
    font-size: 0.9rem;
    background-color: transparent;
}

.dropdown-item:hover {
    background-color: rgba(108, 99, 255, 0.1);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item:active {
    background-color: #6c63ff;
}

.dropdown-item.active {
    background-color: #6c63ff;
    color: white !important;
}

.dropdown-item.active i {
    opacity: 1 !important;
}

.dropdown-toggle {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.btn-light:active {
    transform: translateY(1px);
}

/* Estilos específicos para o tema claro */
body[data-theme="light"] .btn-light {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body[data-theme="light"] .btn-light i {
    color: #333333;
}

body[data-theme="light"] .btn-light:hover {
    background-color: #f8f9fa !important;
    border-color: #d0d0d0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Estilos específicos para o tema escuro */
body[data-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .btn-light i {
    color: white;
}

body[data-theme="dark"] .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .btn-light:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

#toolbarContent {
    transition: all 0.3s ease;
}

/* Estilos do Menu Drawer */
.offcanvas {
    background: linear-gradient(180deg, #1E2124 0%, #16181A 100%);
    color: white;
    border: none;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    width: 300px;
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-title {
    font-family: 'Poppins-Bold', sans-serif;
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offcanvas-title i {
    color: #6c63ff;
    font-size: 1.2rem;
}

.btn-close {
    opacity: 0.7;
    filter: invert(1) grayscale(100%) brightness(200%); /* Para branco */
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 1.5rem;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.drawer-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.drawer-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    gap: 1rem;
}

.menu-item:hover {
    background: rgba(108, 99, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.menu-item i {
    font-size: 1.1rem;
    color: #6c63ff;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.menu-item:hover i {
    color: white;
}

/* Estilos para os submenus */
.submenu-item {
    padding-left: 3rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
}

.submenu-item i {
    font-size: 1rem;
}

.theme-options {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Ícone de seta para dropdowns */
.fa-chevron-down {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.menu-item[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Badge de versão */
.version-badge {
    background: rgba(108, 99, 255, 0.2);
    color: #6c63ff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-left: auto;
}

/* Ajustes para o collapse */
.collapse {
    transition: all 0.3s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.left-settings, .right-settings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.center-settings {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center-settings h1 {
    font-family: 'Poppins-Bold', sans-serif;
    color: white;
    margin: 0;
    font-size: 1.25rem;
}


/* Estilos do Popup */
.tools-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Tema claro para o popup */
body[data-theme="light"] .tools-popup {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tools-popup::before {
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tools-popup .form-label {
    color: #666666;
}

body[data-theme="light"] .tools-popup .form-select,
body[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    -webkit-appearance: menulist-button !important;
    -moz-appearance: menulist-button !important;
    appearance: menulist-button !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

body[data-theme="light"] .tools-popup .form-select:hover,
body[data-theme="light"] .form-select:hover {
    border-color: #6c63ff !important;
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.2) !important;
}

body[data-theme="light"] .tools-popup .form-select:focus,
body[data-theme="light"] .form-select:focus {
    outline: none !important;
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2) !important;
}


body[data-theme="dark"] .form-control-color {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    height: 42px;
}

body[data-theme="light"] .form-control-color {
    background-color:  #ffffff;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    height: 42px;
}

body[data-theme="light"] .tools-popup{
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tools-popup .btn-dark {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #666666;
}

body[data-theme="light"] .tools-popup .btn-dark:hover {
    background-color: rgba(108, 99, 255, 0.1);
    border-color: #6c63ff;
    color: #6c63ff;
}

body[data-theme="light"] .tools-popup .btn-dark.active {
    background-color: #6c63ff;
    border-color: #6c63ff;
    color: white;
}

.tools-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tools-popup-content {
    padding: 1.5rem;
}

body[data-theme="light"] .tools-popup::before {
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tools-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 70px;
    width: 16px;
    height: 16px;
    background-color: #242424;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

/* Ajustes para o formulário dentro do popup */
.tools-popup .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins-Medium', sans-serif;
}

.tools-popup .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tools-popup .form-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.tools-popup .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #6c63ff;
    box-shadow: none;
}


.tools-popup {
    background-color: rgba(255, 255, 255, 0.08);
}

.tools-popup {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tools-popup .btn-dark {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.tools-popup .btn-dark:hover {
    background-color: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-1px);
}

.tools-popup .btn-dark.active {
    background-color: #6c63ff;
    border-color: #6c63ff;
}

/* Estilos do Modal */
.modal-content {
    background: linear-gradient(180deg, #1E2124 0%, #16181A 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-title {
    color: white;
    font-family: 'Poppins-Medium', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    color: #6c63ff;
}

.modal-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body h6 {
    color: white;
    font-family: 'Poppins-Medium', sans-serif;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
}

/* Tema Claro */
body[data-theme="light"] .modal-content {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .modal-title {
    color: #333333;
}

body[data-theme="light"] .modal-title i {
    color: #6c63ff;
}

body[data-theme="light"] .modal-body {
    color: #333333;
}

body[data-theme="light"] .modal-body h6 {
    color: #333333;
}

body[data-theme="light"] .modal-body p {
    color: #333333;
}

body[data-theme="light"] .btn-close {
    filter: none;
}

.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    color: white;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.update-item:hover {
    transform: translateX(5px);
    background: rgba(108, 99, 255, 0.15);
}

.update-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6c63ff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.update-item h6 {
    color: #6c63ff;
    margin-bottom: 0.5rem;
    font-family: 'Poppins-Medium', sans-serif;
}

.update-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Tema claro - botão de cancelar */
body[data-theme="light"] .modal-footer .btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.8);
}

body[data-theme="light"] .modal-footer .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.15);
    color: black;
}

.btn-outline-primary {
    color: #6c63ff;
    border-color: #6c63ff;
}

.btn-outline-primary:hover {
    background-color: #6c63ff;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

#saveToast {
    background-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

#saveToast.show {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-body {
    display: flex;
    align-items: center;
    font-family: 'Poppins-Medium', sans-serif;
    font-size: 0.95rem;
}

.toast-body i {
    font-size: 1.1rem;
}

#toggleToolsPopup {
    display: none;
}

@media (max-width: 780px) {
    #tools-placeholder {
        display: none;
    }
    #toggle-tools {
        display: none;
    }
    #toggleToolsPopup {
        display: block;
    }
}

@media (max-width: 576px) {
    #tools {
        padding: 0.25rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .text-white {
        font-size: 0.9rem;
    }

    .offcanvas {
        width: 280px;
    }
    
    .offcanvas-header {
        padding: 1rem;
    }
    
    .offcanvas-body {
        padding: 1rem;
    }
    
    .drawer-section {
        padding: 1rem;
    }
    
    .menu-item {
        padding: 0.7rem 0.8rem;
    }
    
    .submenu-item {
        padding-left: 2.5rem;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de foco no editor */
#editor:focus-within::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(108, 99, 255, 0.3);
    pointer-events: none;
    transition: all 0.3s ease;
}

#page, #page-settings, #editor, #input-text, .btn-light, .tools-popup, .form-label, #title, .text-dark {
    transition: all 0.3s ease;
}

/* Estilos para os itens de música */
.music-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.music-title {
    font-size: 0.9rem;
    color: inherit;
}

.music-artist {
    font-size: 0.8rem;
    color: var(--bs-gray-600);
}

.music-attribution {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.music-source, .music-license {
    font-size: 0.75rem;
    color: var(--bs-gray-500);
    opacity: 0.8;
}

.music-license {
    padding: 0.1rem 0.3rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 3px;
}

.music-item.playing {
    background: rgba(108, 99, 255, 0.1);
}

.music-item.playing .music-icon {
    animation: pulse 1s infinite;
}

body[data-theme="light"] .music-item.playing {
    background: rgba(108, 99, 255, 0.1);
}

body[data-theme="light"] .music-artist {
    color: var(--bs-gray-700);
}

body[data-theme="light"] .music-source,
body[data-theme="light"] .music-license {
    color: var(--bs-gray-600);
}

body[data-theme="dark"] .music-artist {
    color: var(--bs-gray-400);
}

body[data-theme="dark"] .music-source,
body[data-theme="dark"] .music-license {
    color: var(--bs-gray-500);
}

.music-category {
    padding: 0.5rem 0;
}

.music-category .drawer-section-title {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin: 0;
    opacity: 0.7;
}

body[data-theme="light"] .music-category .drawer-section-title {
    color: #666;
}

body[data-theme="dark"] .music-category .drawer-section-title {
    color: rgba(255, 255, 255, 0.7);
}

.empty-category-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

body[data-theme="light"] .empty-category-message {
    color: rgba(0, 0, 0, 0.5);
}

.menu-item .fa-chevron-down {
    transition: transform 0.3s ease;
}

.menu-item[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(-180deg);
}

.collapse {
    transition: all 0.3s ease-in-out;
}

.collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removendo a margem do último item */
.music-item:last-child {
    margin-bottom: 0;
}

/* Estilos para os popovers de informação das músicas */
.popover {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.popover .arrow::before {
    border-right-color: var(--border-color);
}

.popover .arrow::after {
    border-right-color: var(--bg-color);
}

.music-info-popover {
    padding: 8px;
}

.music-info-popover h6 {
    color: var(--text-color);
    font-weight: 600;
}

.music-info-popover p {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.music-info-popover strong {
    color: var(--accent-color);
}

/* Estilo para o ícone de informação */
.fa-info-circle {
    cursor: pointer;
    transition: color 0.2s ease;
}

.fa-info-circle:hover {
    color: var(--accent-color) !important;
}

.music-info-popover a {
    color: #6c63ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.music-info-popover a:hover {
    color: #5753d8;
    text-decoration: underline;
}

.music-info-popover small {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
    margin-top: 0.5rem;
}

/* Estilos do Controle de Volume */
.volume-control-wrapper {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 6px;
}

.volume-icon {
    color: #6c63ff;
    width: 20px;
    text-align: center;
}

.volume-percentage {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    min-width: 45px;
}

/* Estilização do input range */
.form-range {
    height: 4px;
    padding: 0;
    background-color: transparent;
}

.form-range::-webkit-slider-thumb {
    background: #6c63ff;
    border: 2px solid #fff;
    height: 14px;
    width: 14px;
    margin-top: -5px;
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.form-range::-webkit-slider-runnable-track {
    background: rgba(108, 99, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

/* Firefox */
.form-range::-moz-range-thumb {
    background: #6c63ff;
    border: 2px solid #fff;
    height: 14px;
    width: 14px;
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.form-range::-moz-range-track {
    background: rgba(108, 99, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

/* Tema claro */
body[data-theme="light"] .volume-percentage {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .volume-control-wrapper {
    background: rgba(108, 99, 255, 0.1);
}

/* Para navegadores baseados no WebKit (Chrome, Safari, Edge) */
#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6c63ff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#volumeControl::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#volumeControl::-webkit-slider-runnable-track {
    background: rgba(108, 99, 255, 0.3);
    height: 8px;
    border-radius: 2px;
}

body[data-theme="light"] #volumeControl::-webkit-slider-runnable-track {
    background: rgba(108, 99, 255, 0.5);
}

/* Para Firefox */
#volumeControl::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #6c63ff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#volumeControl::-moz-range-thumb:hover {
    transform: scale(1.1);
}

#volumeControl::-moz-range-track {
    background: rgba(108, 99, 255, 0.3);
    height: 8px;
    border-radius: 2px;
}

body[data-theme="light"] #volumeControl::-moz-range-track {
    background: rgba(108, 99, 255, 0.5);
}

.toast-container {
    z-index: 9999 !important;
}

/* Tema claro para os anúncios */
body[data-theme="light"] {
    background-color: #f8f9fa;
}

body[data-theme="light"] .ad-placeholder {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .ad-placeholder:hover {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .ad-placeholder p {
    color: #333333;
}

body[data-theme="light"] .ad-placeholder small {
    color: #666666;
}

body[data-theme="light"] {
    background: #6c63ff;
    color: white;
}


/* Ajuste para tema claro */
body[data-theme="light"] {
    background: #6c63ff;
    color: white;
}

/* Tema claro para o popup */
body[data-theme="light"] .tools-popup .form-select,
body[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    -webkit-appearance: menulist-button !important;
    -moz-appearance: menulist-button !important;
    appearance: menulist-button !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

body[data-theme="light"] .tools-popup .form-select:hover,
body[data-theme="light"] .form-select:hover {
    border-color: #6c63ff !important;
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.2) !important;
}

body[data-theme="light"] .tools-popup .form-select:focus,
body[data-theme="light"] .form-select:focus {
    outline: none !important;
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2) !important;
}

body[data-theme="light"] .tools-popup {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tools-popup .btn-dark {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #666666;
}

body[data-theme="light"] .tools-popup .btn-dark:hover {
    background-color: rgba(108, 99, 255, 0.1);
    border-color: #6c63ff;
    color: #6c63ff;
}

body[data-theme="light"] .tools-popup .btn-dark.active {
    background-color: #6c63ff;
    border-color: #6c63ff;
    color: white;
}

/* Removendo estilos escuros padrão */
.tools-popup .form-select,
.form-select {
    background-color: transparent;
    background-image: none !important;
}

/* Tema escuro para o popup */
body[data-theme="dark"] .tools-popup .form-select,
body[data-theme="dark"] .form-select {
    background-color: #242424 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    -webkit-appearance: menulist-button !important;
    -moz-appearance: menulist-button !important;
    appearance: menulist-button !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body[data-theme="dark"] .tools-popup .form-select:hover,
body[data-theme="dark"] .form-select:hover {
    border-color: #6c63ff !important;
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.3) !important;
}

body[data-theme="dark"] .tools-popup .form-select:focus,
body[data-theme="dark"] .form-select:focus {
    outline: none !important;
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3) !important;
}

/* Removendo estilos escuros padrão e ícones duplicados */
.tools-popup .form-select,
.form-select {
    background-color: transparent;
    background-image: none !important;
}

/* Estilos para a animação de boas-vindas */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c63ff 0%, #4a44b3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.welcome-text {
    color: white;
    font-size: 2rem;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 4rem;
}

@keyframes textAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text.show {
    animation: textAppear 0.8s forwards;
}

.progress-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.navigation-arrows {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.navigation-arrows.show {
    opacity: 1;
    visibility: visible;
}

.arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.arrow:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.start-button {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: white;
    color: #6c63ff;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins-Medium', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.start-button.show {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.8s ease-out;
}

.start-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 1.5rem;
        padding: 1.5rem;
    }
    .start-button {
        font-size: 1rem;
        padding: 0.8rem 1.6rem;
    }
    .arrow {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.2rem;
        padding: 1rem;
    }
    .start-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.4rem;
    }
    .navigation-arrows {
        padding: 0 1rem;
    }
    .arrow {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
}

#bmc-iframe {  
    height: 70% !important;
    width: 90% !important;
    min-width: 300px !important;
    min-height: unset !important;
    max-width: 420px;
    max-height: 620px;  
}

/* Estilos para o botão de logout */
#logoutBtn {
    color: #ff6b6b;
    transition: all 0.3s ease;
}

#logoutBtn:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

#logoutBtn i {
    color: inherit;
}