/* Notepad Online - Estilo Otimizado e Padronizado (Editor Completo) */
:root {
  --bg-color: #121212; --bg-secondary: #1a1a1a; --bg-card: #1f1f1f; --gold: #e2b64d; --gold-hover: #f0c969; --gold-light: rgba(226, 182, 77, 0.1); --white: #ffffff; --text-color: #e5e5e5; --text-secondary: #aaaaaa; --error: #f44336; --border-radius: 16px; --border-radius-small: 8px; --transition: all 0.3s cubic-bezier(0.4, 0.2, 1); --shadow: 0 4px 20px rgba(0, 0, 0, 0.3); --border: 1px solid rgba(255, 255, 255, 0.1); --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-hover));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-color); font-family: "Poppins", sans-serif; line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 90%; max-width: 900px; margin: 0 auto; padding: 0 20px; }
header { background: rgba(26, 26, 26, 0.95); backdrop-filter: blur(20px); padding: 20px 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(226, 182, 77, 0.2); }
.header-content, .logo-section, .logo-link, .breadcrumb a { display: flex; align-items: center; }
.header-content { justify-content: space-between; gap: 20px; }
.logo-link { gap: 12px; text-decoration: none; color: var(--text-color); transition: var(--transition); }
.logo-link:hover { color: var(--gold); transform: scale(1.05); }
.logo { height: 50px; } .logo-text { font-size: 18px; font-weight: 600; }
.breadcrumb a { gap: 8px; color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: var(--border-radius-small); border: var(--border); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); background: var(--gold-light); border-color: var(--gold); }
main { flex: 1; padding: 40px 0; }
.hero-section { text-align: center; margin-bottom: 40px; }
.hero-content h1 { font-size: 32px; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.hero-content h1 i { margin-right: 8px; }
.hero-description { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Estrutura do Notepad */
.notepad-section { margin: 40px 0; }
.notepad-container { background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow); border: var(--border); }
.main-editor { border-bottom: 1px solid var(--border); }
.editor-header { display: flex; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
#noteTitle { flex-grow: 1; background: transparent; border: none; color: var(--text-color); font-size: 1.2rem; font-weight: 500; }
#noteTitle:focus { outline: none; }
.btn-new-note { background: var(--gradient-gold); color: var(--bg-secondary); border: none; padding: 10px 20px; border-radius: var(--border-radius-small); font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.btn-new-note:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.editor-toolbar { display: flex; align-items: center; gap: 5px; padding: 10px 20px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-btn { background: none; border: 1px solid transparent; color: var(--text-secondary); width: 36px; height: 36px; border-radius: var(--border-radius-small); cursor: pointer; font-size: 1rem; transition: var(--transition); }
.toolbar-btn:hover { background: var(--gold-light); color: var(--gold); }
.toolbar-btn.active { background: var(--gold-light); color: var(--gold); border-color: var(--gold); }
.toolbar-select { background: var(--bg-card); color: var(--text-color); border: var(--border); padding: 6px; border-radius: var(--border-radius-small); }
.editor-toolbar .separator { width: 1px; height: 20px; background: var(--border); margin: 0 10px; }
.toolbar-actions { margin-left: auto; display: flex; gap: 5px; }
.download-dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; right: 0; background-color: var(--bg-secondary); min-width: 120px; box-shadow: var(--shadow); z-index: 1; border-radius: var(--border-radius-small); border: var(--border); overflow: hidden; }
.dropdown-content a { color: var(--text-color); padding: 10px 15px; text-decoration: none; display: block; font-size: 14px; }
.dropdown-content a:hover { background-color: var(--gold-light); color: var(--gold); }
.download-dropdown.show .dropdown-content { display: block; }

.editable-content { width: 100%; min-height: 40vh; padding: 20px; border: none; background: transparent; color: var(--text-color); font-family: "Poppins", sans-serif; font-size: 1rem; line-height: 1.7; resize: vertical; }
.editable-content:focus { outline: none; }
/* CORREÇÃO DA COR E CLIQUE DO LINK */
.editable-content a { color: var(--white) !important; text-decoration: underline; }
.notes-list-wrapper { padding: 20px; }
.notes-list-wrapper h2 { color: var(--gold); font-size: 18px; margin-bottom: 20px; }
.notes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.note-card { background: var(--bg-secondary); border: var(--border); border-radius: var(--border-radius-small); padding: 15px; cursor: pointer; transition: all 0.3s ease; animation: fadeIn 0.5s ease; }
.note-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.note-card.active { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-light); background: var(--gold-light); }
.note-title { font-weight: 600; color: var(--text-color); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-date { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.note-actions { display: flex; justify-content: flex-end; }
.btn-delete { background: none; border: none; color: var(--text-secondary); font-size: 14px; cursor: pointer; transition: var(--transition); }
.btn-delete:hover { color: var(--error); }
.empty-list-message { text-align: center; color: var(--text-secondary); grid-column: 1 / -1; }
.empty-list-message i { font-size: 2rem; margin-bottom: 10px; }

/* Seção de Informações e FAQ */
.info-section { margin: 60px 0; }
.info-container h2 { color: var(--gold); font-size: 24px; text-align: center; margin-bottom: 20px; }
.info-container > p { text-align: center; color: var(--text-secondary); max-width: 700px; margin: 0 auto 30px; }
.faq-grid { display: flex; flex-direction: column; gap: 15px; }
.faq-item details { background: var(--bg-card); border: var(--border); border-radius: var(--border-radius-small); transition: background-color 0.3s; }
.faq-item details:hover { background-color: var(--bg-secondary); }
.faq-item summary { padding: 15px 20px; cursor: pointer; font-weight: 500; color: var(--text-color); position: relative; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { transition: transform 0.3s ease; }
.faq-item details[open] summary i { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 15px; color: var(--text-secondary); }

/* Rodapé */
footer { background: rgba(26, 26, 26, 0.95); padding: 30px 0; border-top: 1px solid rgba(226, 182, 77, 0.2); margin-top: auto; text-align: center; }
footer p { color: var(--text-secondary); font-size: 14px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-hover); }

/* Animações e Responsividade */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .hero-content h1 { font-size: 28px; } }