@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==================== GLOBAL STYLES ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #2b2a2a;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: 2b2a2a;
  overflow: hidden;
  min-height: 100vh;
}

img {
    max-width: 35%;
}

/* ==================== LOADING & LOGIN ==================== */

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 1.5rem;
  color: white;
  font-weight: 500;
}

.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-box h1 {
  margin-bottom: 1rem;
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
}

.login-box p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.btn-login {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== APP LAYOUT ==================== */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #f5f5f5;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-bar {
  flex: 1;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgb(255 255 255);
  color: #2b2a2a;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
  color: #2b2a2a;
}

.search-bar input:focus {
  outline: none;
  background: rgb(255 255 255 / 26%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-user {
  padding: 0.7rem 1.2rem;
  background: rgb(255 255 255);
  color: #2b2a2a;
  text-decoration: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.btn-user:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-home {
  padding: 0.7rem 1.2rem;
  background: rgb(255 255 255);
  color: #2b2a2a;
  text-decoration: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.app-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ==================== SIDEBAR ==================== */

.sidebar {
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* border-right: 9px solid rgb(149 149 149 / 5%); */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
  display: none;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-user-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-user-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 1.5rem;
  color: #2b2a2a;
  font-weight: 600;
}

.btn-new {
  padding: 0.3rem 1rem;
  background: rgba(179, 131, 226, 0.8);
  color: white;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(179, 131, 226, 0.3);
}

.btn-new:hover {
  background: rgba(179, 131, 226, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 131, 226, 0.5);
}

.sidebar-section {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  color: #2b2a2a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-add {
  background: none;
  border: none;
  color: rgba(179, 131, 226, 0.9);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-add:hover {
  background: rgba(179, 131, 226, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.sidebar-item {
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2b2a2a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
  background: rgba(179, 131, 226, 0.4);
  color: #2b2a2a;
  font-weight: 600;
  box-shadow: inset 0 0 15px rgba(179, 131, 226, 0.3);
}

.category-item {
  padding: 0.7rem 1rem 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-item > span:nth-child(2) {
  flex: 1;
  cursor: pointer;
}

.category-toggle {
  cursor: pointer;
  font-size: 1rem;
  color: #2b2a2a;
  width: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.library-list {
  padding-left: 1rem;
  background: rgba(0, 0, 0, 0.05);
}

.library-item {
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.library-item > span {
  flex: 1;
  cursor: pointer;
}

.btn-delete-small {
  background: none;
  border: none;
  color: rgba(255, 99, 99, 0.8);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-delete-small:hover {
  background: rgb(255 99 99 / 97%);
  color: white;
  transform: scale(1.15) rotate(90deg);
}

.btn-add-library {
  margin: 0.5rem 1rem 0.5rem 2.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(179, 131, 226, 0.9);
  border-radius: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-add-library:hover {
  background: rgba(179, 131, 226, 0.15);
  border-color: rgba(179, 131, 226, 0.6);
  transform: translateY(-1px);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
}

.tag {
  padding: 0.4rem 0.9rem;
  background: rgb(126 126 127 / 70%);
  color: white;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag.clickable {
  cursor: pointer;
}

.tag.clickable:hover {
  background: rgba(179, 131, 226, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 131, 226, 0.3);
}

.tag.selected {
  background: rgba(179, 131, 226, 0.7);
  box-shadow: 0 2px 8px rgba(179, 131, 226, 0.4);
}

.sidebar-link-btn {
  display: block;
  /* margin: 1rem 1.5rem; */
  padding-top: 1rem;
  /* background: rgba(76, 175, 80, 0.3); */
  /* color: white; */
  text-decoration: none;
  /* border-radius: 1rem; */
  /* text-align: center; */
  /* font-weight: 600; */
  /* font-size: 1rem; */
  /* transition: all 0.3s ease; */
  /* border: 1px solid rgba(76, 175, 80, 0.4); */
  /* backdrop-filter: blur(10px); */
  padding-left: 1.5rem;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
  flex: 1;
  overflow-y: auto;
  /* background: rgb(235 232 232); */
}

/* ==================== NOTES LIST ==================== */

.notes-list {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.notes-header h2 {
  color: #2b2a2a;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.notes-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: white;
}

.empty-state p {
  margin-bottom: 2rem;
  font-size: 1.3rem;
  opacity: 0.9;
}

.empty-state button {
  padding: 1rem 2rem;
  background: rgba(179, 131, 226, 0.8);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 20px rgba(179, 131, 226, 0.4);
}

.empty-state button:hover {
  background: rgba(179, 131, 226, 1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(179, 131, 226, 0.6);
}

.note-item {
  background: rgb(255 255 255);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.note-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.note-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.note-item h3 {
  color: 2b2a2a;
  font-size: 1.4rem;
  font-weight: 600;
  flex: 1;
}

.note-date {
  color: 2b2a2a;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.note-meta {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.note-category {
  color: rgba(179, 131, 226, 1);
  font-weight: 600;
}

.note-library {
  color: 2b2a2a;
  font-weight: 400;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.note-shared-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 193, 7, 0.3);
  color: white;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.note-actions {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-item:hover .note-actions {
  opacity: 1;
}

.note-actions button {
  background: rgb(255 255 255 / 0%);
  border: none;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.note-actions button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.note-actions button.danger:hover {
  background: rgba(239, 68, 68, 0.7);
}

/* ==================== NOTE VIEWER ==================== */

.note-viewer {
  /*height: 100%;*/
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255);
  overflow-y: auto;
  overflow-x: hidden;
}

.viewer-header {
  padding: 0.5rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: #f5f5f5;
  backdrop-filter: blur(15px);
}

.viewer-title-section h1 {
  font-size: 2.8rem;
  color: #2b2a2a;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

.viewer-meta-info {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.viewer-actions {
  display: flex;
  gap: 0.8rem;
  /* margin-top: 1.8rem; */
  flex-wrap: wrap;
}

/*.btn-edit {
  background: rgb(191 189 189 / 16%);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(179, 131, 226, 0.3);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}*/

.btn-edit:hover {
  background: rgba(179, 131, 226, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 131, 226, 0.5);
}

.btn-download,
.btn-archive,
.btn-unarchive,
.btn-delete-viewer,
.btn-edit {
  background: rgb(191 189 189 / 16%);
  color: #2b2a2a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: .875rem;
  font-weight: 400;
}

.btn-download:hover,
.btn-archive:hover,
.btn-unarchive:hover {
  background: rgba(179, 131, 226, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/*.btn-delete-viewer {
  padding: 0.3rem 1.3rem;
  background: rgb(239 0 0 / 16%);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 2rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
}*/

.btn-delete-viewer:hover {
  background: rgb(239 68 68);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-close {
  color: #ffffff;
  background: rgb(21 21 205 / 16%);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 2rem;
  transition: all 0.3s ease;
  margin-left: auto;
  font-family: 'Poppins', sans-serif;
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-close:hover {
  background: rgb(6 9 243 / 97%);
  transform: translateY(-2px);
}

.viewer-categories {
  padding: 0.2rem 3rem;
  display: flex;
  gap: 0.2rem;
  align-items: center;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
  /* border-radius: 1rem; */
  /* border-color: black; */
  /* border: 2px solid rgb(137 131 131 / 40%); */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.viewer-category {
  color: rgba(179, 131, 226, 1);
  font-weight: 600;
  font-size: 14px;
}

.viewer-library {
  color: #2b2a2a;
  font-size: 14px;
}

.viewer-tags {
  padding: 0.2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: none;
}

.viewer-shares {
  padding: 1.2rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.viewer-shares strong {
  color: white;
}

.share-badge {
  padding: 0.4rem 1rem;
  background: rgba(255, 193, 7, 0.3);
  color: white;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.viewer-content {
  flex: 1;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  background: #fdfdfd;
  border-radius: 1rem;
  border-color: black;
  border: 2px solid rgb(137 131 131 / 40%);
}

.markdown-preview {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2b2a2a;
}

.markdown-preview h1 {
  font-size: 2.5rem;
  margin: 0.3rem 0 0.2rem 0;
  color: #2b2a2a;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.8rem;
  font-weight: 600;
}

.markdown-preview h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
  color: #2b2a2a;
  font-weight: 600;
}

.markdown-preview h3 {
  font-size: 1.6rem;
  margin: 1.5rem 0 0.8rem 0;
  color: #2b2a2a;
  font-weight: 600;
}

.markdown-preview strong {
  font-weight: 700;
  color: #2b2a2a;
}

.markdown-preview em {
  font-style: italic;
  color: #2b2a2a;
}

.markdown-preview code {
  background: rgb(0 0 0 / 74%);
  padding: 0.54rem 0.7rem;
  border-radius: 0.5rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  color: #f9f9f9;
  backdrop-filter: blur(10px);
}

.markdown-preview a {
  color: rgba(179, 131, 226, 1);
  text-decoration: none;
  border-bottom: 2px solid rgba(179, 131, 226, 0.5);
  transition: all 0.3s ease;
  font-weight: 500;
}

.markdown-preview a:hover {
  color: rgba(179, 131, 226, 0.8);
  border-bottom-color: rgba(179, 131, 226, 0.8);
}

/* ==================== EXTENDED MARKDOWN STYLES ==================== */

/* Mark (highlight) */
.markdown-preview mark {
  background: #ffeb3b;
  color: #2b2a2a;
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
}

/* Insert (underline) */
.markdown-preview ins {
  text-decoration: underline;
  text-decoration-color: #4caf50;
  text-decoration-thickness: 2px;
}

/* Tables */
.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}

.markdown-preview th,
.markdown-preview td {
  border: 1px solid #e0e0e0;
  padding: 0.8rem;
  text-align: left;
}

.markdown-preview th {
  background: #f5f5f5;
  font-weight: 600;
  color: #2b2a2a;
}

.responsive-img2 {
  max-width: 20%;
}

.markdown-preview tr:nth-child(even) {
  background: #fafafa;
}

/* Blockquotes */
.markdown-preview blockquote {
  border-left: 4px solid #b383e2;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.markdown-preview blockquote p {
  margin: 0;
}

/* Footnotes */
.markdown-preview .footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
  font-size: 0.9rem;
}

.markdown-preview .footnote-ref {
  color: #b383e2;
  text-decoration: none;
  font-weight: 600;
}

.markdown-preview .footnote-ref:hover {
  text-decoration: underline;
}

/* Abbreviations */
.markdown-preview abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* ==================== NOTE EDITOR ==================== */

.note-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: #f5f5f5;
  backdrop-filter: blur(15px);
}

.editor-title {
  flex: 1;
  border: none;
  font-size: 2rem;
  font-weight: 600;
  color: #2b2a2a;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  border-radius: 0.8rem;
  padding: 0.5rem 0.5rem;
  border-radius: 0.8rem;
  border-color: black;
}

.editor-title::placeholder {
  color: #2b2a2a;
}

.editor-title:focus {
  outline: none;
}

.editor-actions {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem 2.5rem;
  background: #f5f5f5;
  position: sticky;  
  top: 0;         
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-save {
  padding: 0.9rem 1.8rem;
  background: rgb(13 233 0 / 46%);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(179, 131, 226, 0.3);
}

.btn-save:hover {
  background: rgb(14 250 4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 131, 226, 0.5);
}

.btn-cancel {
  padding: 0.9rem 1.3rem;
  background: rgb(221 0 0 / 36%);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-cancel:hover {
  background: rgb(248 3 3);
  transform: translateY(-2px);
}

.editor-meta select {
  padding: 0.1rem 0.3rem;
  border: 1px solid rgb(147 144 144 / 45%);
  border-radius: 0.1rem;
  font-size: 1rem;
  color: #2b2a2a;
  background: #ffffff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.editor-meta select option {
  background: #764ba2;
  color: white;
}

.editor-meta select:focus {
  outline: none;
  border-color: rgba(179, 131, 226, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.editor-tags {
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #f5f5f5;
}

.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tag-input {
  display: flex;
  gap: 0.6rem;
}

.tag-input input {
  /*flex: 1;*/
  padding: 0.7rem 1.2rem;
  border: 3px solid rgb(187 186 186 / 74%);
  border-radius: 0.8rem;
  font-size: 0.95rem;
  background: rgb(255 255 255);
  color: white;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 50%;
}

.tag-input input::placeholder {
  color: #2b2a2a;
}

.tag-input input:focus {
  outline: none;
  border-color: rgba(179, 131, 226, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.tag-input button {
  padding: 0.3rem 0.3rem;
  background: rgb(147 146 147 / 70%);
  border: 1px solid rgb(92 92 93 / 50%);
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.tag-input button:hover {
  background: rgb(4 240 113);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 131, 226, 0.3);
}

/* ==================== MARKDOWN EDITOR ==================== */

.markdown-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.editor-toolbar {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #f5f5f5;
  flex-wrap: wrap;
}

.editor-toolbar button {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgb(203 203 203 / 44%);
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b2a2a;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
}

.editor-toolbar button:hover {
  background: rgba(179, 131, 226, 0.5);
  border-color: rgba(179, 131, 226, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 131, 226, 0.3);
}

.editor-textarea {
  flex: 1;
  padding: 2.5rem;
  border: none;
  resize: none;
  color: #2b2a2a;
  background: rgb(255 255 255 / 98%);
  font-family: WordVisi_MSFontService, Calibri, sans-serif;
  font-family: 'Poppins', sans-serif;
  line-height: 1.9;
  font-size: 1.15rem;
  overflow-y: auto;
  min-height: 0;
  flex-shrink: 0;
}

.editor-textarea::placeholder {
  color: #2b2a2a;
}

.editor-textarea:focus {
  outline: none;
  /*background: rgba(0, 0, 0, 0.15);*/
}

/* ==================== SCROLLBAR STYLING ==================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgb(231 231 231 / 92%);
}

::-webkit-scrollbar-thumb {
  background: rgb(225 224 227 / 79%);
  border-radius: 5px;
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(179 131 226 / 54%);
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-item {
  animation: fadeIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-item {
  animation: slideIn 0.3s ease-out;
}

/* ==================== RESPONSIVE ==================== */

/* ==================== EDITOR META BUTTONS (MOBILE) ==================== */

.editor-meta-buttons {
  display: flex;
  flex-direction: row;  /* ← ZMĚŇ */
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-meta-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.2rem 0.1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.btn-meta-action:active {
  transform: scale(0.98);
  background: #f9f9f9;
}

.meta-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.meta-text {
  flex: 1;
  color: #2b2a2a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

/* ==================== MODAL OVERLAY ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== TAG COLORS & EDIT ==================== */

/* Tag wrapper s edit tlačítkem */
.tag-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-edit-btn {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.tag-edit-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

.tag-edit-btn:active {
  transform: scale(0.95);
}

/* Color picker grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-option {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
  border-color: #2b2a2a;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-option:active {
  transform: scale(1.05);
}

/* Native color input */
.color-input-native {
  width: 100%;
  height: 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  cursor: pointer;
  padding: 0.3rem;
}

.color-input-native:focus {
  outline: none;
  border-color: #b383e2;
}

/* Tag preview */
.tag-preview {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 1rem;
}

.tag-preview .tag {
  font-size: 1.1rem;
  padding: 0.7rem 1.3rem;
}

/* Modal footer split (pro delete a save vedle sebe) */
.modal-footer-split {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.btn-modal-delete {
  flex: 1;
  padding: 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-modal-delete:active {
  transform: scale(0.98);
  background: #dc2626;
}

.btn-modal-delete:hover {
  background: #dc2626;
}

/* Tag name input */
.tag-name-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.tag-name-input:focus {
  outline: none;
  border-color: #b383e2;
}

/* Barevné poznámky v seznamu */
.note-item.colored {
  border-left: 4px solid;
}

/* Desktop hover states */
@media (min-width: 769px) {
  .btn-modal-delete:hover {
    background: #dc2626;
  }
  
  .color-option:hover {
    transform: scale(1.15);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .color-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr));
    gap: 0.4rem;
  }
  
  .color-option {
    width: 2.2rem;
    height: 2.2rem;
  }
  
  .modal-footer-split {
    flex-direction: column;
  }
  
  .tag-edit-btn {
    opacity: 1;
  }
}

/* ==================== TAG LIST EDIT MODAL ==================== */

.tag-list-edit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #f9f9f9;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tag-list-item:hover {
  background: #f0f0f0;
  border-color: #b383e2;
  transform: translateX(4px);
}

.tag-list-item:active {
  transform: scale(0.98);
}

.tag-list-color {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-list-name {
  flex: 1;
  font-weight: 500;
  color: #2b2a2a;
  font-size: 1rem;
}

.tag-list-arrow {
  color: #b383e2;
  font-size: 1.5rem;
  font-weight: 600;
}

.empty-tags-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.empty-tags-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .tag-list-item {
    padding: 0.9rem 1rem;
  }
  
  .tag-list-name {
    font-size: 0.95rem;
  }
}

/* ==================== MODAL CONTENT ==================== */

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem 1.5rem 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2b2a2a;
}

.modal-close {
  background: #f0f0f0;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
}

.modal-close:active {
  background: #e0e0e0;
  transform: scale(0.95);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-field {
  margin-bottom: 1.5rem;
}

.modal-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2b2a2a;
  font-size: 0.95rem;
}

.modal-field select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background: white;
  color: #2b2a2a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-field select:focus {
  outline: none;
  border-color: #b383e2;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.btn-modal-confirm {
  width: 100%;
  padding: 1rem;
  background: #b383e2;
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-modal-confirm:active {
  transform: scale(0.98);
  background: #9966cc;
}

/* ==================== TAGS MODAL SPECIFIC ==================== */

.modal-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 1rem;
  min-height: 80px;
}

.modal-tags-grid .tag {
  padding: 0.6rem 1rem;
  background: #e0e0e0;
  color: #2b2a2a;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.modal-tags-grid .tag.selected {
  background: #b383e2;
  color: white;
  border-color: #9966cc;
  box-shadow: 0 2px 8px rgba(179, 131, 226, 0.3);
}

.modal-tags-grid .tag:active {
  transform: scale(0.95);
}

.tag-input-inline {
  display: flex;
  gap: 0.7rem;
}

.tag-input-inline input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.tag-input-inline input:focus {
  outline: none;
  border-color: #b383e2;
}

.btn-add-tag {
  padding: 1rem 1.5rem;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.btn-add-tag:active {
  transform: scale(0.95);
  background: #45a049;
}

/* Mobile - hamburger menu */
@media (max-width: 768px) {
  /* Hamburger button */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 2.8rem;
    height: 2.8rem;
    background: rgb(255 255 255 / 0%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    z-index: 300;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
  }

  .modal-content {
    border-radius: 1.5rem;
    max-height: 90vh;
    width: 500px;
  }

  .modal-overlay {
    align-items: center;
  }
  
  .btn-meta-action:hover {
    background: #f0f0f0;
    border-color: #b383e2;
  }
  
  .modal-close:hover {
    background: #e0e0e0;
  }
  
  .btn-modal-confirm:hover {
    background: #9966cc;
  }
  
  .modal-tags-grid .tag:hover {
    transform: translateY(-2px);
  }
  
  .btn-add-tag:hover {
    background: #45a049;
  }
  
  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
  }
  
  /* Overlay */
  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(0 0 0 / 42%);
    z-index: 180;
  }
  
  /* Sidebar */
  .sidebar {
    width: 300px;
    max-width: 85vw;
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 200;
    transition: left 0.3s ease;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    background: #97909e4f 100%;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  /* Viditelnost obsahu */
  .sidebar-user-info {
    display: block;
    background: rgba(0, 0, 0, 0.2);
  }
  
  .sidebar-user-btn {
    color: white;
    border-color: white;
  }
  
  .sidebar-header,
  .sidebar-header h2,
  .sidebar-section-header,
  .sidebar-item {
    color: white;
  }
  
  .btn-new {
    background: rgba(255, 255, 255, 0.3);
    color: white;
  }
  
  .user-info {
    display: none;
  }
  
  .app-content {
    flex-direction: column;
  }
  
  .app-header {
    padding: 0.8rem 1rem;
  }
  
  .search-bar {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  
  .search-bar input {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
  
  .user-info {
    gap: 0.5rem;
  }
  
  .btn-user {
    max-width: 100px;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .btn-home {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .notes-list {
    padding: 1.2rem;
  }
  
  .notes-header h2 {
    font-size: 1.6rem;
  }
  
  .note-item {
    padding: 1.3rem;
  }
  
  .note-item h3 {
    font-size: 1.2rem;
  }
  
  .note-actions {
    top: 1.3rem;
    right: 1.3rem;
    opacity: 1;
  }
  
  .editor-header,
  .editor-tags,
  .editor-toolbar,
  .editor-textarea {
    padding: 1rem 1.5rem;
  }
  
  .editor-meta {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
  
  .editor-meta select {
    width: 50%;
  }
  
  .editor-title {
    font-size: 1.6rem;
  }
  
  .viewer-header {
    padding: 1.5rem;
  }
  
  .viewer-title-section h1 {
    font-size: 1.8rem;
  }
  
  .viewer-content {
    padding: 1.5rem;
  }
  
  .viewer-categories,
  .viewer-tags,
  .viewer-shares {
    padding: 1rem 1.5rem;
  }
  
  .viewer-actions {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  
  .btn-edit,
  .btn-download,
  .btn-archive,
  .btn-unarchive,
  .btn-delete-viewer,
  .btn-close {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .sidebar-link-btn {
    margin: 0.8rem 1rem;
    padding: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0.7rem 0.8rem;
    gap: 0.5rem;
  }
  
  .hamburger-btn {
    width: 1.8rem;
    height: 1.8rem;
  }
  
  .hamburger-btn span {
    width: 1.8rem;
    height: 0.2rem;
  }
  
  .btn-user {
    max-width: 80px;
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }
  
  .btn-home {
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }
  
  .search-bar input {
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .notes-list {
    padding: 1rem;
  }
  
  .notes-header h2 {
    font-size: 1.4rem;
  }
  
  .note-item {
    padding: 1.2rem;
  }
  
  .note-item h3 {
    font-size: 1.1rem;
  }
  
  .note-actions {
    margin-top: 0.8rem;
    opacity: 1;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }
  
  .viewer-title-section h1 {
    font-size: 1.5rem;
  }
  
  .viewer-header {
    padding: 1.2rem;
  }
  
  .viewer-content {
    padding: 1.2rem;
  }
  
  .viewer-categories,
  .viewer-tags,
  .viewer-shares {
    padding: 0.8rem 1.2rem;
  }
  
  .markdown-preview {
    font-size: 1rem;
  }
  
  .markdown-preview h1 {
    font-size: 1.8rem;
  }
  
  .markdown-preview h2 {
    font-size: 1.5rem;
  }
  
  .markdown-preview h3 {
    font-size: 1.3rem;
  }
  
  .editor-header,
  .editor-tags,
  .editor-toolbar,
  .editor-textarea {
    padding: 0.3rem 0.1rem;
  }
  
  .editor-meta {
    padding: 0.2rem 0.2rem;
  }
  
  .editor-toolbar {
    gap: 0.4rem;
  }
  
  .editor-toolbar button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ==================== UTILITIES ==================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ==================== GLASSMORPHISM EFFECTS ==================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.editor-meta {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.responsive-img2 {
  max-width: 20%;
}

/* ==================== FLOATING ACTION BUTTONS ==================== */

.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:active {
  transform: scale(0.95);
}

.fab-toolbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fab-meta {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.fab-actions {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* FAB Menu */
.fab-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.fab-menu {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem 1.5rem 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.fab-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.fab-menu-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2b2a2a;
  margin: 0;
}

.fab-menu-header button {
  background: #f0f0f0;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab-menu-header button:active {
  background: #e0e0e0;
  transform: scale(0.95);
}

.fab-menu-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toolbar grid */
.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.toolbar-grid button {
  padding: 1rem;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #2b2a2a;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.toolbar-grid button:active {
  background: #e0e0e0;
  transform: scale(0.95);
}

/* Full width buttons */
.btn-full {
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-full:active {
  transform: scale(0.98);
}

/* Desktop - skryj FAB */
@media (min-width: 769px) {
  .fab-container {
    display: none;
  }
  
  /* Obnov původní layout na desktopu */
  .editor-actions,
  .editor-meta-buttons,
  .editor-toolbar {
    display: flex !important;
  }
}

/* Mobile - skryj původní prvky */
@media (max-width: 768px) {
  .editor-actions,
  .editor-meta-buttons {
    display: none;
  }
  
  .editor-toolbar {
    display: none;
  }
}