:root {
    --bg-color: #0a0a0a;
    --secondary-bg: #131313;
    --overlay-bg: rgba(19, 19, 19, 0.65);
    --text-color: #e6e6e6;
    --text-muted: #9e9e9e;
    --border-color: rgba(255, 255, 255, 0.06);
    --hover-bg: rgba(255, 255, 255, 0.03);
    --link-color: #d4d4d4;
    --sidebar-bg: #111111;
    --active-tab-bg: #181818;
    --inactive-tab-bg: #1e1e1e;
    --accent-color: #9e9e9e;
    --accent-glow: rgba(158, 158, 158, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-bg: rgba(19, 19, 19, 0.5);
    --glass-card: rgba(19, 19, 19, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Estilos para as tags updatefile */
updatefile, delfile, newfile {
    display: block;
    background-color: rgba(19, 19, 19, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 
                0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Cabeçalho com display flex */
.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Container esquerdo (ícone + nome) */
.file-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Importante para o text-overflow funcionar */
}

/* Container direito (Edited + seta) */
.file-right {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* Ícone de código */
.icon-code {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: rgba(15, 15, 15, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #c0c0c0;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
}

/* Nome do arquivo */
.file-path {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Label de status */
.status-label {
    color: var(--text-muted);
    font-size: 12px;
    background-color: rgba(30, 30, 30, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    margin-right: 8px;
}

/* Ícone de seta */
.toggle-icon {
    color: var(--text-muted);
    font-size: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease;
}

/* Efeito hover */
updatefile:hover, delfile:hover, newfile:hover {
    background-color: rgba(30, 30, 30, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 0 var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Rota o ícone quando expandido */
updatefile.expanded .toggle-icon,
delfile.expanded .toggle-icon,
newfile.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Cores específicas para cada tipo de mudança */
/* UpdateFile - amarelo/laranja */
updatefile .icon-code {
    color: #f39c12;
}
updatefile .status-label {
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

/* DelFile - vermelho */
delfile .icon-code {
    color: #e74c3c;
}
delfile .status-label {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* NewFile - verde */
newfile .icon-code {
    color: #2ecc71;
}
newfile .status-label {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

/* Conteúdo expandido */
updatefile old, updatefile new,
delfile .file-content,
newfile .file-content,
updatefile .file-content {
    display: none;
    margin-top: 15px;
}

updatefile.expanded old, 
updatefile.expanded new,
delfile.expanded .file-content,
newfile.expanded .file-content,
updatefile.expanded .file-content {
    display: block;
    padding: 10px 12px;
    margin: 12px 0;
    border-radius: 6px;
    white-space: pre-wrap;
    position: relative;
    font-size: 13px;
}

/* Estilos para o conteúdo editado */
updatefile.expanded .file-content {
    background-color: rgba(243, 156, 18, 0.08);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.1);
    border-left: 3px solid rgba(243, 156, 18, 0.5);
}

/* Estilos para o conteúdo antigo/removido */
updatefile.expanded old,
delfile.expanded .file-content {
    background-color: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    text-decoration: line-through;
    border: 1px solid rgba(231, 76, 60, 0.1);
    border-left: 3px solid rgba(231, 76, 60, 0.5);
}

/* Estilos para o conteúdo novo/adicionado */
updatefile.expanded new,
newfile.expanded .file-content {
    background-color: rgba(46, 204, 113, 0.08);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-left: 3px solid rgba(46, 204, 113, 0.5);
}

/* Labels para o conteúdo */
updatefile.expanded old::before, 
updatefile.expanded new::before,
delfile.expanded .file-content::before,
newfile.expanded .file-content::before {
    position: absolute;
    font-size: 10px;
    right: 8px;
    top: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.2);
}

updatefile.expanded old::before,
delfile.expanded .file-content::before {
    content: '-';
    color: rgba(231, 76, 60, 0.7);
}

updatefile.expanded new::before,
newfile.expanded .file-content::before {
    content: '+';
    color: rgba(46, 204, 113, 0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh; /* Mantém o footer no fim, mas permite crescer */
    /* overflow: hidden; removido para permitir scroll vertical */
    overflow-x: hidden; /* Mantém prevenção de scroll horizontal */
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23222222' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23181818'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 25% 25%, rgba(50, 50, 50, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(40, 40, 40, 0.15) 0%, transparent 50%);
    background-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* Topbar Styles */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid var(--glass-border);
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo i {
    margin-right: 8px;
    font-size: 18px;
    color: #c0c0c0;
}

.menu-container {
    display: flex;
}

.menu-item {
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: var(--hover-bg);
    color: white;
}

.sync-button { /* Exportar para pasta */
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px; /* Similar a action-button */
    padding: 0 10px; /* Padding ajustado */
    height: 36px; /* Altura igual a action-button */
    background-color: var(--glass-card);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    margin-right: 8px; /* Espaço antes do próximo botão */
}

.sync-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color), inset 0 1px 0 0 var(--glass-highlight);
}
.sync-button i {
    font-size: 15px; /* Tamanho do ícone */
}


.workspace-info {
    padding: 0 12px;
    height: 36px; /* Ajuste para alinhar melhor com os botões */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-right: 8px; /* Mantém espaço antes do botão Exportar */
    background-color: var(--glass-card); /* Fundo similar aos botões */
    border: 1px solid var(--glass-border); /* Borda similar aos botões */
    border-radius: 8px; /* Bordas arredondadas como botões */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

.workspace-info:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color), inset 0 1px 0 0 var(--glass-highlight);
}

.workspace-info::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.2s ease;
}

.workspace-info:hover::after {
    width: 80%;
}

.workspace-info.selecting {
    background-color: var(--accent-glow);
    color: var(--text-color);
    animation: pulse 1.5s infinite;
}

.workspace-info.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--text-color);
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pulse {
    0% { background-color: rgba(66, 153, 225, 0.05); }
    50% { background-color: rgba(66, 153, 225, 0.2); }
    100% { background-color: rgba(66, 153, 225, 0.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.workspace-info:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.workspace-info:hover i {
    color: #f6e05e;
}

.workspace-info i {
    color: #ecc94b;
}

#workspace-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--glass-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color), inset 0 1px 0 0 var(--glass-highlight);
}

.action-button:active {
    transform: translateY(0);
}

.action-button i {
    font-size: 15px; /* Padronizado tamanho do ícone */
    color: #c0c0c0; /* Cor padrão para ícones de ação */
}

/* Cores específicas podem ser sobrescritas se necessário, mas manter consistência */
/* .action-button#export-btn i { color: #c0c0c0; } */
/* .action-button#copy-btn i { color: #c0c0c0; } */
/* .action-button#theme-toggle i { color: #c0c0c0; } */
/* .action-button#settings-btn i, */
/* .projetos-header .action-button i { color: #c0c0c0; } */


.vscode-container {
    display: flex;
    height: calc(100vh - 48px);
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: rgba(10, 10, 10, 0.65);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset -1px 0 0 0 var(--glass-highlight);
}

.folder-structure {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.folder-structure::-webkit-scrollbar {
    width: 6px;
}

.folder-structure::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.folder-structure::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Timeline Section */
.timeline-section {
    border-top: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
    padding-bottom: 8px;
    max-height: 30%;
    overflow-y: auto;
}

.timeline-section::-webkit-scrollbar {
    width: 6px;
}

.timeline-section::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.timeline-section::-webkit-scrollbar-track {
    background-color: transparent;
}

.timeline-header {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-header i {
    margin-right: 8px;
    font-size: 12px;
}

.timeline-items {
    margin-left: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    position: relative;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background-color: var(--hover-bg);
}

.timeline-item i {
    margin-right: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.timeline-item span {
    cursor: pointer;
}

.revert-button {
    display: none;
    position: absolute;
    right: 8px;
    font-size: 11px;
    padding: 3px 8px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.revert-button:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.timeline-item:hover .revert-button {
    display: inline-block;
}

.timeline-item {
    width: 100%;
    padding-right: 70px; /* Espaço para o botão */
}

.sidebar-header {
    padding: 16px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-shrink: 0;
}

.folder-structure {
    padding: 5px;
}

.folder {
    margin-bottom: 6px;
}

.folder-name {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.folder-name:hover {
    background-color: var(--hover-bg);
}

.folder-name i {
    margin-right: 8px;
    font-size: 14px;
}

.files {
    margin-left: 16px;
}

.file {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.file:hover {
    background-color: var(--hover-bg);
}

.file.active {
    background-color: var(--accent-glow);
}

.file i {
    margin-right: 8px;
    font-size: 14px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    position: relative;
}

/* Editor Tabs */
.editor-tabs {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    padding: 0 16px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: rgba(30, 30, 30, 0.6);
    border-right: 1px solid var(--glass-border);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-right: 2px;
    margin-top: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

.tab:hover {
    background-color: var(--hover-bg);
}

.tab.active {
    background-color: rgba(24, 24, 24, 0.8);
    border-bottom: 2px solid #c0c0c0;
}

.tab i {
    margin-right: 8px;
    font-size: 14px;
}

.tab .close-icon {
    margin-left: 15px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tab .close-icon:hover {
    color: var(--text-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Badge para abas */
.tab-badge {
    background-color: #e74c3c; /* Cor vermelha para BETA */
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 8px;
    margin-left: 8px;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


/* Code Editor Area */
.code-editor {
    flex: 1;
    display: flex;
    background-color: var(--bg-color);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    padding: 16px;
    white-space: pre;
    overflow: auto;
}

.code-editor::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-editor::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.code-editor::-webkit-scrollbar-track {
    background-color: transparent;
}

.editor-content {
    flex: 1;
    width: 100%;
}

/* Estilo para os números de linha do plugin */
.hljs-ln {
    border-collapse: collapse;
}

.hljs-ln td {
    padding: 0;
}

.hljs-ln-n:before {
    content: attr(data-line-number);
}

.hljs-ln-numbers {
    user-select: none;
    text-align: right;
    color: var(--text-muted);
    vertical-align: top;
    padding-right: 8px !important;
    min-width: 40px;
    pointer-events: none;
}

.hljs-ln-code {
    padding-left: 8px !important;
}

.code-content {
    flex: 1;
}

/* Ajustes para o Highlight.js */
.code-content pre {
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    width: 100%;
}

.code-content code.hljs {
    background: transparent !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    white-space: pre;
    padding: 0 !important;
    width: 100%;
    display: block;
}

/* Estilizar scrollbars para todo o conteúdo de código */
.code-content::-webkit-scrollbar,
.markdown-content pre::-webkit-scrollbar,
.message-text::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.code-content::-webkit-scrollbar-thumb,
.markdown-content pre::-webkit-scrollbar-thumb,
.message-text::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.code-content::-webkit-scrollbar-track,
.markdown-content pre::-webkit-scrollbar-track,
.message-text::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}



/* Copilot Interface */
.copilot-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.copilot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 100px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#messages-container::-webkit-scrollbar {
    width: 8px;
}

#messages-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#messages-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.welcome-content {
    text-align: center;
    padding: 40px 40px;
    margin-bottom: 40px;
    background: radial-gradient(circle at center, rgba(40, 40, 40, 0.1) 0%, transparent 70%);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.welcome-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.copilot-icon {
    font-size: 72px;
    margin-top: -20px;
    margin-bottom: 35px;
    color: #ffffff;
    background: linear-gradient(45deg, #c0c0c0, #404040);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
}

.copilot-icon::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
}

h1 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #8e8e8e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    display: inline-block;
}

.warning-text {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 20px;
}

.warning-text::before,
.warning-text::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.warning-text::before {
    left: -20px;
}

.warning-text::after {
    right: -20px;
}

.shortcuts {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.shortcut-item {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    padding: 14px 20px;
    background-color: rgba(19, 19, 19, 0.3);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 
                0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.shortcut-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, rgba(150, 150, 150, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcut-item:hover {
    transform: translateY(-3px) translateX(3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(35, 35, 35, 0.5);
}

.shortcut-item:hover::after {
    opacity: 1;
}

.shortcut-item i {
    margin-right: 14px;
    color: #c0c0c0;
    font-size: 18px;
    background-color: rgba(30, 30, 30, 0.7);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.command-container {
    margin-bottom: 40px;
    padding: 10px 0;
}

.command-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cmd-button {
    width: 180px;
    height: 76px;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(19, 19, 19, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight),
                0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cmd-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cmd-button:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
                0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(30, 30, 30, 0.5);
}

.cmd-button:hover::before {
    transform: translateX(100%);
}

.cmd-button:active {
    transform: translateY(-2px);
}

.cmd-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-icon i {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.cmd-text {
    display: flex;
    flex-direction: column;
}

.cmd-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.cmd-desc {
    font-size: 12px;
    color: #9e9e9e;
}

.input-area {
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 800px;
    max-width: 90%;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 var(--glass-highlight);
    transition: all 0.3s ease;
}

.input-area:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.file-info {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
    display: none;
}

#attached-files-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.attached-file {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--hover-bg);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
}

.attached-file i.file-icon {
    font-size: 14px;
}

.attached-file .file-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attached-file .remove-file {
    color: var(--secondary-text);
    cursor: pointer;
    padding: 2px;
}

.attached-file .remove-file:hover {
    color: var(--text-color);
}

.attached-file.image-file {
    padding: 4px;
    align-items: center;
    background-color: var(--hover-bg);
}

.attached-file.image-file .file-preview {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    object-fit: contain;
    margin-right: 4px;
}

.input-box {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-text);
}

#cico-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    resize: none;
    height: 36px;
    min-height: 36px;
    padding: 8px 0;
    outline: none;
    font-family: inherit;
    transition: background-color 0.2s;
}

#cico-input.drag-over {
    background-color: rgba(0, 122, 204, 0.1);
    border-radius: 4px;
}

#cico-input::placeholder {
    color: var(--secondary-text);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-actions i {
    cursor: pointer;
    transition: color 0.2s;
}

.input-actions i:hover {
    color: var(--text-color);
}

.gpt-version {
    font-size: 12px;
    padding: 4px 10px;
    background-color: #2d2d2d;
    color: #ffffff;
    border-radius: 20px;
    margin: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fa-magnifying-glass {
    color: var(--secondary-text);
}

/* Estilos para mensagens de chat */
.message {
    display: flex;
    margin-bottom: 24px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
    width: 100%;
}

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

.message.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message.assistant-message {
    margin-right: auto;
    align-self: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #333333, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message.user-message .message-avatar {
    background: linear-gradient(45deg, #333333, #1a1a1a);
}

.message.assistant-message .message-avatar {
    background: linear-gradient(45deg, #2d2d2d, #1a1a1a);
}

.message-content {
    background-color: rgba(25, 25, 25, 0.4);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: normal;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Estilos para arquivos na mensagem */
.message-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
}

.message-image {
    max-width: 100%;
    border-radius: 4px;
    max-height: 200px;
}

.file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.file-icon-container i {
    font-size: 16px;
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
}

.file-size {
    font-size: 11px;
    color: var(--secondary-text);
}

.message-text {
    word-break: break-word;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

/* Indicador de digitação (três pontos animados) */
.typing-indicator {
    display: flex;
    align-items: center;
    height: 20px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #9e9e9e;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: bounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation: bounce 1s infinite ease-in-out 0.33s;
}

.typing-indicator span:nth-child(3) {
    animation: bounce 1s infinite ease-in-out 0.66s;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-6px);
        opacity: 1;
    }
}

.message.user-message .message-content {
    background-color: rgba(50, 50, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.assistant-message .message-content {
    background-color: rgba(25, 25, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Estilos para o Seletor de Versão CicoGPT --- */
.version-selector-container {
    position: relative; /* Necessário para posicionar o dropdown */
    margin: 0 8px; /* Espaçamento similar ao antigo span */
}

.gpt-version-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px; /* Padding ajustado */
    background-color: #2d2d2d; /* Fundo similar ao original */
    color: #ffffff;
    border-radius: 20px; /* Bordas arredondadas */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px; /* Tamanho da fonte */
    white-space: nowrap; /* Evita quebra de linha */
}

.gpt-version-trigger:hover {
    background-color: #3f3f3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.gpt-version-trigger .current-version {
    font-weight: 500;
}

.gpt-version-trigger i {
    font-size: 10px; /* Ícone pequeno */
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.gpt-version-trigger.open i {
    transform: rotate(180deg); /* Gira a seta quando aberto */
}


.version-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 5px); /* Posiciona acima do trigger com 5px de espaço */
    right: 0; /* Alinha à direita do container */
    background-color: rgba(25, 25, 25, 0.95); /* Fundo escuro semi-transparente */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    z-index: 120; /* Acima da input area */
    min-width: 160px; /* Largura mínima */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95); /* Animação de subida */
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.version-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.version-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.version-option i {
    width: 16px;
    text-align: center;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.version-option:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.version-option:hover i {
    color: var(--text-color);
}

.version-option.active {
    color: var(--text-color);
    font-weight: 500;
}

.version-option.active i {
    color: var(--text-color); /* Ou uma cor de destaque, como #2ecc71 */
}

.pro-badge {
    font-size: 9px;
    color: #000000;
    background: linear-gradient(to right, #fbd38d, #f6ad55); /* Gradiente dourado */
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- Fim Estilos Seletor de Versão --- */

/* --- Estilos para o Seletor de Versão CicoGPT --- */
.version-selector-container {
    position: relative; /* Necessário para posicionar o dropdown */
    margin: 0 8px; /* Espaçamento similar ao antigo span */
}

.gpt-version-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px; /* Padding ajustado */
    background-color: #2d2d2d; /* Fundo similar ao original */
    color: #ffffff;
    border-radius: 20px; /* Bordas arredondadas */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px; /* Tamanho da fonte */
    white-space: nowrap; /* Evita quebra de linha */
}

.gpt-version-trigger:hover {
    background-color: #3f3f3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.gpt-version-trigger .current-version {
    font-weight: 500;
}

.gpt-version-trigger i {
    font-size: 10px; /* Ícone pequeno */
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.gpt-version-trigger.open i {
    transform: rotate(180deg); /* Gira a seta quando aberto */
}


.version-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 5px); /* Posiciona acima do trigger com 5px de espaço */
    right: 0; /* Alinha à direita do container */
    background-color: rgba(25, 25, 25, 0.95); /* Fundo escuro semi-transparente */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    z-index: 120; /* Acima da input area */
    min-width: 160px; /* Largura mínima */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95); /* Animação de subida */
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.version-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.version-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.version-option i {
    width: 16px;
    text-align: center;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.version-option:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.version-option:hover i {
    color: var(--text-color);
}

.version-option.active {
    color: var(--text-color);
    font-weight: 500;
}

.version-option.active i {
    color: var(--text-color); /* Ou uma cor de destaque, como #2ecc71 */
}

.pro-badge {
    font-size: 9px;
    color: #000000;
    background: linear-gradient(to right, #fbd38d, #f6ad55); /* Gradiente dourado */
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- Fim Estilos Seletor de Versão --- */

/* Markdown styling */
.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin: 16px 0;
    max-width: 100%;
    position: relative;
}

.markdown-content pre::before {
    content: attr(data-language);
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.markdown-content code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
    word-break: break-word;
    white-space: normal;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    white-space: pre !important;
    word-break: normal;
    tab-size: 4;
    -moz-tab-size: 4;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.markdown-content h1 {
    font-size: 1.8em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.markdown-content h3 {
    font-size: 1.3em;
}

.markdown-content h4 {
    font-size: 1.1em;
}

.markdown-content h5, .markdown-content h6 {
    font-size: 1em;
}

.markdown-content p {
    margin-bottom: 14px;
    max-width: 100%;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content ul, 
.markdown-content ol {
    margin-left: 20px;
    margin-bottom: 16px;
    padding-left: 16px;
}

.markdown-content li {
    margin-bottom: 6px;
}

.markdown-content ul li {
    list-style-type: disc;
}

.markdown-content ol li {
    list-style-type: decimal;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
    margin-top: 6px;
    margin-bottom: 6px;
}

.markdown-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
}

.markdown-content a:hover {
    border-bottom: 1px solid #3498db;
}

.markdown-content strong {
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0 4px 4px 0;
}



/* Estilos para o modal de alerta personalizado */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alert-modal.open {
    opacity: 1;
    visibility: visible;
}

.alert-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-modal-content {
    background-color: rgba(19, 19, 19, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2001;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-width: 90%;
    min-width: 300px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.alert-modal.open .alert-modal-content {
    transform: translateY(0) scale(1);
}

.alert-modal-theme-bar {
    height: 4px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(158, 158, 158, 0.7), rgba(158, 158, 158, 0.2));
}

.alert-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    position: relative;
}

.alert-modal-icon {
    font-size: 20px;
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-modal-header h2 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.alert-modal-close {
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.alert-modal-close:hover {
    background-color: rgba(50, 50, 50, 0.8);
    transform: scale(1.1);
}

.alert-modal-body {
    padding: 24px;
    line-height: 1.5;
    color: var(--text-muted);
    font-size: 15px;
}

.alert-modal-body strong {
    color: var(--text-color);
}

.alert-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.alert-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: rgba(30, 30, 30, 0.7);
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.alert-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.alert-modal-btn:active {
    transform: translateY(0);
}

.alert-modal-confirm {
    background: linear-gradient(to bottom, rgba(70, 70, 70, 0.8), rgba(40, 40, 40, 0.8)) !important;
    color: white !important;
}

.alert-modal-cancel {
    background-color: rgba(20, 20, 20, 0.5) !important;
    color: var(--text-muted) !important;
}

/* Diferentes cores para diferentes tipos de alertas */
.alert-modal-theme-bar.info {
    background: linear-gradient(to right, #3498db, rgba(52, 152, 219, 0.2));
}

.alert-modal-theme-bar.success {
    background: linear-gradient(to right, #2ecc71, rgba(46, 204, 113, 0.2));
}

.alert-modal-theme-bar.warning {
    background: linear-gradient(to right, #f39c12, rgba(243, 156, 18, 0.2));
}

.alert-modal-theme-bar.danger {
    background: linear-gradient(to right, #e74c3c, rgba(231, 76, 60, 0.2));
}

.alert-modal-icon.info {
    color: #3498db;
}

.alert-modal-icon.success {
    color: #2ecc71;
}

.alert-modal-icon.warning {
    color: #f39c12;
}

.alert-modal-icon.danger {
    color: #e74c3c;
}



/* Estilos para o indicador de sincronização */
.sync-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.sync-loading i {
    font-size: 40px;
    color: #c0c0c0;
    margin-bottom: 20px;
    animation: rotate 1.5s linear infinite;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sync-loading p {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.5;
}

/* Notificação de toast para feedback */
.toast-notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 400px;
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-left: none;
}

.toast-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success::before {
    background-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.toast-notification.error::before {
    background-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.toast-notification.warning::before {
    background-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.toast-notification .toast-icon {
    font-size: 22px;
    color: #b0b0b0;
    background-color: rgba(30, 30, 30, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toast-notification.success .toast-icon {
    color: #2ecc71;
}

.toast-notification.error .toast-icon {
    color: #e74c3c;
}

.toast-notification.warning .toast-icon {
    color: #f39c12;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.toast-notification .toast-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-notification .toast-close {
    cursor: pointer;
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--glass-border);
}

.toast-notification .toast-close:hover {
    background-color: rgba(50, 50, 50, 0.8);
    transform: scale(1.1);
}

/* Estilos para o Tooltip da Timeline */
.timeline-tooltip {
    position: absolute;
    background-color: rgba(15, 15, 15, 0.85); /* Fundo escuro semi-transparente */
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre-wrap; /* Permite quebra de linha */
    word-wrap: break-word; /* Quebra palavras longas se necessário */
    max-width: 300px; /* Define uma largura máxima */
    z-index: 100; /* Garante que fique sobre outros elementos */
    pointer-events: none; /* Evita que o tooltip interfira com o mouse */
    opacity: 0; /* Começa invisível */
    transform: translateX(10px); /* Leve deslocamento para animação */
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Estilos para o Tooltip da Timeline */
.timeline-tooltip {
    position: absolute;
    background-color: rgba(15, 15, 15, 0.85); /* Fundo escuro semi-transparente */
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre-wrap; /* Permite quebra de linha */
    word-wrap: break-word; /* Quebra palavras longas se necessário */
    max-width: 300px; /* Define uma largura máxima */
    z-index: 100; /* Garante que fique sobre outros elementos */
    pointer-events: none; /* Evita que o tooltip interfira com o mouse */
    opacity: 0; /* Começa invisível */
    transform: translateX(10px); /* Leve deslocamento para animação */
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Responsividade */
@media (max-width: 480px) {
    .alert-modal-content {
        width: 90% !important;
    }
    
    .alert-modal-footer {
        flex-direction: column;
    }
    
    .alert-modal-btn {
        width: 100%;
    }
}