/* --- STOICKÝ DESIGN PRO DOXA NOTES --- */ :root { /* Světlý motiv - Inspirovaný antickým mramorem a pergamenem */ --bg: #f5f4f0; --text: #2c2e30; --muted: #73797e; --button-bg: #e5e2da; --button-text: #2c2e30; --note-bg: #ffffff; --note-border: #dcd8cd; --note-hover: #edeae2; --accent: #b3893e; /* Tlumená bronzová */ --accent-hover: #967131; --modal-bg: #ffffff; --modal-overlay: rgba(44, 46, 48, 0.4); --active-bg: #fdfbf7; --active-border: #b3893e; /* --card-bg: #222529;*/ } /* Tmavý motiv - Hluboká noc a bronz (Výchozí pro landing page) */ body.dark { --bg: #1a1c1e; --text: #e2e4e9; --muted: #9ba1a6; --button-bg: #2d3135; --button-text: #e2e4e9; --note-bg: #222529; --note-border: #2e3238; --note-hover: #2b2e33; --accent: #c5a059; /* Jasnější stoická bronzová */ --accent-hover: #dfba73; --modal-bg: #222529; --modal-overlay: rgba(0, 0, 0, 0.6); --active-bg: rgba(197, 160, 89, 0.05); --active-border: #c5a059; } /* Základní nastavení */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, monospace, sans-serif; background: var(--bg); color: var(--text); padding: 40px 20px; line-height: 1.6; transition: background 250ms ease, color 250ms ease; } .container { max-width: 900px; margin: 0 auto; background-color: var(--card-bg); padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); text-align: center; border: 1px solid rgba(197, 160, 89, 0.1); } /* Navigace */ .top-nav { display: flex; gap: 10px; margin-bottom: 30px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--note-border); padding-bottom: 15px; } .top-nav a, .top-nav .theme-toggle { background: var(--button-bg); color: var(--button-text); text-decoration: none; padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; } .top-nav a:hover, .top-nav .theme-toggle:hover { background: var(--note-hover); border-color: var(--accent); } .top-nav a.active { background: var(--accent); color: #111; font-weight: bold; align-items: center; } /* Nadpisy */ h1 { font-size: 2.2rem; /*margin-bottom: 20px;*/ letter-spacing: 0.5px; /*display: flex;*/ align-items: center; gap: 10px; text-align: center; } h1::after { content: " 🦅"; font-size: 1.5rem; } /* Formulářové prvky */ #noteTitle { width: 100%; padding: 12px 16px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 4px; outline: none; transition: border-color 0.2s; } #noteTitle:focus { border-color: var(--accent); } #noteTags { width: 100%; padding: 12px 16px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 4px; outline: none; transition: border-color 0.2s; } #noteTags:focus { border-color: var(--accent); } textarea { width: 100%; height: 220px; padding: 14px; margin-bottom: 12px; font-family: monospace; font-size: 14px; color: var(--text); background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 4px; outline: none; resize: vertical; line-height: 1.5; } textarea:focus { border-color: var(--accent); } /* Tlačítka */ button { background: var(--button-bg); color: var(--button-text); border: 1px solid var(--note-border); padding: 10px 18px; border-radius: 4px; cursor: pointer; font-weight: 500; transition: background 0.2s, border-color 0.2s; } button:hover { background: var(--note-hover); border-color: var(--accent); } /* Editor toolbar */ .editor-toolbar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; background: var(--note-bg); padding: 6px; border-radius: 4px; border: 1px solid var(--note-border); } .editor-toolbar button { background: transparent; border: none; color: var(--text); padding: 6px 10px; cursor: pointer; border-radius: 3px; font-size: 13px; } .editor-toolbar button:hover { background: var(--note-hover); color: var(--accent); } .editor-toolbar button.active { background: var(--accent); color: #111; font-weight: bold; } /* Layout editoru a náhledu */ .editor-wrap { display: flex; gap: 16px; align-items: flex-start; } .editor-wrap textarea { flex: 1 1 55%; min-height: 250px; } .preview { flex: 1 1 45%; border: 1px solid var(--note-border); background: var(--note-bg); padding: 16px; border-radius: 4px; overflow: auto; min-height: 250px; max-height: 400px; font-size: 0.95rem; } .hidden { display: none; } /* Akce pod editorem */ .editor-actions { margin: 15px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } #newNoteButton { background: var(--accent); color: #111; font-weight: bold; border: 1px solid transparent; } #newNoteButton:hover { background: var(--accent-hover); } .save-status { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 500; } #searchTagInput { width: 100%; padding: 12px 16px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 4px; outline: none; transition: border-color 0.2s; } #searchTagInput:focus { border-color: var(--accent); } /* Seznam poznámek */ #notesContainer { margin-top: 25px; border-top: 1px solid var(--note-border); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; } .note-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--note-border); border-radius: 6px; background: var(--note-bg); transition: transform 0.15s, border-color 0.15s; } .note-item:hover { background: var(--note-hover); border-color: rgba(197, 160, 89, 0.4); } .note-item.active { background: var(--active-bg); border-color: var(--active-border); box-shadow: 0 0 10px rgba(197, 160, 89, 0.05); } .note-left { flex: 1 1 auto; padding-right: 15px; cursor: pointer; overflow: hidden; } .note-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .note-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .note-controls { display: flex; gap: 4px; align-items: center; } .note-controls button { background: transparent; border: none; padding: 6px 10px; color: var(--text); opacity: 0.6; transition: opacity 0.2s, color 0.2s; } .note-controls button:hover { background: var(--button-bg); opacity: 1; } .note-controls button.delete:hover { color: #ff6b6b; } .no-notes { color: var(--muted); font-style: italic; padding: 15px; text-align: center; } .notes-hint { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; } /* Drag & Drop styly */ .note-item.drag-over { border-style: dashed; border-color: var(--accent); } .note-item.drag-after { box-shadow: inset 0 -3px 0 0 var(--accent); } .note-item.dragging { opacity: 0.4; } /* Modální okno */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--modal-overlay); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal { background: var(--modal-bg); padding: 24px; border-radius: 8px; width: 95%; max-width: 800px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); position: relative; border: 1px solid var(--note-border); } .modal h2 { margin-bottom: 15px; font-size: 1.4rem; } .modal .modal-close { position: absolute; right: 16px; top: 16px; border: none; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; } .modal .modal-close:hover { color: var(--text); } .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; } #modalSaveBtn { background: var(--accent); color: #111; font-weight: bold; } #modalSaveBtn:hover { background: var(--accent-hover); } /* Styly pro renderovaný Markdown */ .preview h1, .preview h2, .preview h3 { margin: 14px 0 8px 0; color: var(--text); } .preview p { margin-bottom: 10px; } .preview pre { background: rgba(0, 0, 0, 0.15); padding: 12px; border-radius: 4px; overflow: auto; border: 1px solid var(--note-border); margin: 10px 0; } body:not(.dark) .preview pre { background: #f0ede6; } .preview code { font-family: monospace; background: rgba(197, 160, 89, 0.15); padding: 2px 5px; border-radius: 3px; font-size: 0.9em; } .preview ul, .preview ol { margin-left: 20px; margin-bottom: 10px; } .preview blockquote { border-left: 3px solid var(--accent); padding-left: 12px; font-style: italic; color: var(--muted); margin: 12px 0; } .preview table { width: 100%; border-collapse: collapse; margin: 15px 0; } .preview th, .preview td { border: 1px solid var(--note-border); padding: 8px 12px; text-align: left; } .preview th { background: var(--button-bg); } /* Responzivita */ @media (max-width: 800px) { body { padding: 20px 10px; } .editor-wrap { flex-direction: column; } .preview { width: 100%; min-height: 150px; } } #links { color: var(--accent); } #lineHR { border: none; border-top: 1px solid var(--accent); } footer { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); } /* Homepage card*/ .new-name { color: var(--accent-bronze); font-weight: 700; } .philosophy { font-style: italic; border-left: 2px solid var(--accent-bronze); padding-left: 15px; text-align: left; margin: 30px 0; font-size: 0.95rem; } .btnHomePage { display: inline-block; background-color: var(--accent-bronze); color: #e0961f; text-decoration: none; padding: 14px 28px; border-radius: 4px; font-weight: bold; font-size: 1.1rem; transition: background-color 0.2s ease, transform 0.1s ease; box-shadow: 0 8px 16px rgba(197, 160, 89, 0.2); } .btnHomePage:hover { background-color: var(--accent-hover); transform: translateY(-1px); } .btnHomePage:active { transform: translateY(1px); } ul { list-style-type: none; padding-left: 0; }