/* Base reset */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: #0a0a0a; color: #ffffff; height: 100vh; display: flex; flex-direction: column; } /* Navbar */ .navbar { background-color: #111; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 100; } .navbar .logo { font-size: 1.6rem; font-weight: bold; color: #ffffff; } .navbar a { color: #ffffff; font-weight: 600; text-decoration: none; margin-left: 1.5rem; transition: color 0.2s ease; } .navbar a:hover { color: #e53935; } /* Layout principale */ .main-container { flex: 1; display: flex; overflow: hidden; } /* Sidebar */ .sidebar { background-color: #121212; width: 280px; padding: 1rem; border-right: 1px solid #222; overflow-y: auto; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; color: #e53935; font-weight: bold; font-size: 1.1rem; margin-bottom: 1rem; } #addNote { background-color: #e53935; color: #fff; border: none; font-size: 1.3rem; cursor: pointer; border-radius: 6px; width: 34px; height: 34px; } #noteList { list-style: none; } #noteList li { background-color: #1c1c1c; color: #f5f5f5; padding: 0.7rem 1rem; margin-bottom: 0.4rem; border-radius: 6px; cursor: pointer; transition: background 0.2s ease; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #noteList li:hover, #noteList li.active { background-color: #e53935; color: #fff; } /* Editor */ .editor-container { flex: 1; padding: 2rem; background-color: #0f0f0f; display: flex; flex-direction: column; } #noteTitle { font-size: 1.5rem; padding: 0.7rem 1rem; background: #1f1f1f; border: 1px solid #333; border-radius: 8px; color: #fff; margin-bottom: 1rem; } #noteContent { flex: 1; padding: 1rem; background: #1f1f1f; color: #fff; border: 1px solid #333; border-radius: 8px; font-size: 1rem; resize: none; line-height: 1.5; } /* Azioni */ .actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; } .actions button { background-color: #e53935; color: white; border: none; padding: 0.6rem 1rem; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background 0.2s ease; } .actions button:hover { background-color: #c62828; } /* Stato */ .status { margin-top: 0.8rem; font-size: 0.9rem; color: #ccc; } /* Auth container */ .auth-container { max-width: 380px; margin: 6rem auto; background-color: #121212; padding: 2rem; border-radius: 12px; box-shadow: 0 0 12px rgba(0,0,0,0.4); text-align: center; } .auth-container h1 { margin-bottom: 1.5rem; color: #ffffff; } .auth-container input { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border-radius: 6px; border: 1px solid #333; background-color: #1f1f1f; color: #fff; font-size: 1rem; } .auth-container button { width: 100%; padding: 0.8rem; background-color: #e53935; border: none; border-radius: 6px; font-weight: bold; color: white; cursor: pointer; transition: background 0.2s ease; } .auth-container button:hover { background-color: #c62828; } .auth-container p, .auth-container a { color: #ccc; font-size: 0.9rem; margin-top: 1rem; text-decoration: none; } .auth-container a:hover { color: #fff; } /* Errori */ .error { background: #c62828; color: white; padding: 0.8rem; border-radius: 6px; margin-bottom: 1rem; font-weight: bold; } /* Scrollbar */ .sidebar::-webkit-scrollbar { width: 8px; } .sidebar::-webkit-scrollbar-thumb { background: #e5393544; border-radius: 4px; } /* Responsive */ @media (max-width: 900px) { .main-container { flex-direction: column; } .sidebar { width: 100%; height: 160px; border-bottom: 1px solid #222; border-right: none; flex-direction: row; overflow-x: auto; } .sidebar-header { display: none; } #noteList { display: flex; gap: 0.5rem; } #noteList li { min-width: 140px; flex: 0 0 auto; } .editor-container { height: calc(100vh - 228px); } }