/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
  font-family: "Poppins";
}

/* Hide ALL radio button default styling */
input[type="radio"] {
  display: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide ALL checkbox default styling */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

input[autocomplete="off"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ========================================
   MY NOTES TAB ICON
   ======================================== */

.mepr-nav-item.mepr-my-notes a:before {
  content: "\f249";
}

.mpmn-my-notes {
  @media screen and (min-width: 992px) {
    padding-left: 40px;
  }
}

/* ========================================
   MAIN CONTAINER & LAYOUT
   ======================================== */

.mp_wrapper.cmp-notes-wrapper,
.cmp-notes-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Poppins", sans-serif;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.cmp-header {
  margin-top: 24px;
  margin-bottom: 12px;
}

.cmp-header .cmp-btn {
  margin-left: 36px;
}

.cmp-header-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: "Poppins", sans-serif;
}

.cmp-header-info .cmp-subtitle {
  color: #666;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}

.cmp-header-right {
  display: flex;
}

/* ========================================
   STATS SECTION
   ======================================== */

.cmp-stats {
  display: flex;
}

.cmp-stat {
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
  padding: 0 36px;
  position: relative;
}

.cmp-stat:after {
  width: 1px;
  height: calc(100% - 4px);
  background: #e0e0e0;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 4px;
}

.cmp-stat:hover {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
}

.cmp-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2px;
}

/* ========================================
   ENHANCED BUTTON SYSTEM
   ======================================== */

.cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

.cmp-btn-primary {
  background: #008ed3;
  color: white;
}

.cmp-btn-primary:hover {
  background: #1680b9;
  border-color: #1680b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cmp-btn-secondary {
  background: white;
  color: #374151;
  border-color: #d1d5db;
}

.cmp-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.cmp-btn-success {
  background: #059669;
  color: white;
  border-color: #059669;
}

.cmp-btn-success:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.cmp-btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.cmp-btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.cmp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cmp-btn .cmp-icon {
  font-size: 16px;
  line-height: 1;
}

.cmp-save-note {
  background: #188ece !important;
  color: white;
  border-color: #188ece;
}

.cmp-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  gap: 6px;
}

.cmp-btn-sm .cmp-icon {
  font-size: 14px;
}

.cmp-btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  height: 46px;
}

/* ========================================
   TOOLBAR & FILTERS SECTION
   ======================================== */

.cmp-toolbar-container {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cmp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cmp-toolbar-left {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.cmp-toolbar-right {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* 2x2 Grid Layout */
.cmp-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.cmp-filters-grid > .cmp-filter-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.cmp-filters-grid > .cmp-filter-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.cmp-tall-card {
  grid-column: 3;
  grid-row: 1 / 3;
}

.cmp-wide-card {
  grid-column: 1 / 3;
  grid-row: 2;
}

.cmp-filter-card {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cmp-filter-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.cmp-card-title {
  font-size: 14px !important;
  font-weight: 600;
  color: #1f2937;
  margin: 0 !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
  font-family: "Poppins";
}

.cmp-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cmp-toolbar-filters {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  flex: 1;
}

.cmp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.cmp-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0;
}

.cmp-add-category-group {
  flex: 1;
  min-width: 300px;
}

.cmp-add-category-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cmp-add-category-inline .cmp-form-control {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cmp-add-category-inline .cmp-form-control:focus {
  outline: none;
  border-color: #188ece;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cmp-add-category-inline .cmp-btn {
  padding: 14px 24px;
  margin: 9px 0 0 0;
  white-space: nowrap;
  flex-shrink: 0;
  height: 46px;
}

#cmp-manage-categories-btn {
  margin-top: 54px;
  padding: 14px 24px;
}

/* Clear Filters Section */
.cmp-clear-filters-section {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.cmp-clear-filters-section .cmp-btn {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   SEARCH & FORM CONTROLS
   ======================================== */

.cmp-search-wrapper {
  position: relative;
  width: 100%;
}

.cmp-search-wrapper .cmp-form-control {
  padding-right: 48px;
  width: 100%;
  padding: 12px 16px;
  padding-right: 80px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  height: 46px;
  transition: all 0.2s ease;
}

.cmp-form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cmp-form-control:focus {
  outline: none;
  border-color: #188ece;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cmp-form-control:-webkit-autofill,
.cmp-form-control:-webkit-autofill:hover,
.cmp-form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: #374151;
}

.cmp-search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 16px;
  pointer-events: none;
}

.cmp-search-btn:hover {
  color: #188ece;
}

.cmp-clear-btn {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cmp-clear-btn:hover {
  background: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

.cmp-select {
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  min-width: 200px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.cmp-select:focus {
  outline: none;
  border-color: #188ece;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cmp-select-full {
  width: 100%;
  padding: 12px 16px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
}

.cmp-select-full:focus {
  outline: none;
  border-color: #188ece;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   NOTES DISPLAY SECTIONS
   ======================================== */

#cmp-notes-display {
  margin-top: 40px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cmp-notes-section {
  margin-bottom: 48px;
  transition: all 0.3s ease;
}

.cmp-notes-section:last-child {
  margin-bottom: 0;
}

/* Enhanced Pinned Notes Section */
#cmp-pinned-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

#cmp-pinned-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

#cmp-pinned-section .cmp-section-title {
  color: #92400e;
  margin-bottom: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

#cmp-pinned-section .cmp-section-title .cmp-pin-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#cmp-pinned-section .cmp-section-count {
  background: #92400e;
  color: #fffbeb;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

/* All Notes Section */
#cmp-all-notes-section {
  position: relative;
}

#cmp-all-notes-section .cmp-section-title {
  color: #1f2937;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

#cmp-all-notes-section .cmp-section-count {
  background: #1f2937;
  color: white;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* Section Divider */
.cmp-section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
  margin: 48px 0;
  position: relative;
}

.cmp-section-divider::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  border-radius: 5px;
}

/* ========================================
   NOTES GRID & CARDS
   ======================================== */

.cmp-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

.cmp-note-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  font-family: "Poppins", sans-serif;
}

.cmp-note-card[data-color]:not([data-color="#ffffff"]) {
  background-color: var(--note-color);
}

.cmp-note-card[data-pinned="1"] {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, white 0%, #fffbeb 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.cmp-note-card[data-pinned="1"]::before {
  content: "📌";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  opacity: 0.8;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.cmp-note-card[data-pinned="1"]:hover::before {
  opacity: 0;
}

#cmp-pinned-section .cmp-note-card[data-pinned="1"] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#cmp-pinned-section .cmp-note-card[data-pinned="1"]::before {
  display: none;
}

.cmp-note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.12);
}

.cmp-note-card:hover[data-color]:not([data-color="#ffffff"]) {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

#cmp-pinned-section .cmp-note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.cmp-note-card[data-can-edit="0"] .cmp-note-action {
  opacity: 0.6;
  cursor: not-allowed;
}

.cmp-note-card[data-can-edit="0"] .cmp-note-action:hover {
  opacity: 0.8;
  background: rgba(239, 68, 68, 0.1);
}

.cmp-note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.cmp-note-title {
  font-size: 18px !important;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
  flex: 1;
  letter-spacing: -0.01em;
  font-family: "Poppins", sans-serif;
}

.cmp-note-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.cmp-note-card:hover .cmp-note-actions {
  opacity: 1;
}

.cmp-note-action {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-note-action:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.cmp-pin-button.pinned {
  background: #f59e0b;
  color: white;
}

.cmp-note-content {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 16px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-family: "Poppins", sans-serif;
}

.cmp-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  gap: 12px;
  min-height: 32px;
}

.cmp-note-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.cmp-note-meta > * {
  min-width: 0;
}

.cmp-note-category {
  background: #f3f4f6;
  color: #6b7280;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  flex-shrink: 1;
  transition: all 0.2s ease;
}

.cmp-note-category:hover {
  max-width: none;
  background: #e5e7eb;
  z-index: 10;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: help;
}

.cmp-note-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
  cursor: help;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  flex-shrink: 1;
}

.cmp-note-author:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
  max-width: none;
  z-index: 10;
  position: relative;
}

.cmp-author-icon {
  font-size: 12px;
  line-height: 1;
  opacity: 0.8;
  flex-shrink: 0;
}

.cmp-author-text {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cmp-pinned-section .cmp-note-author {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
  color: #92400e;
}

#cmp-pinned-section .cmp-note-author:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  border-color: #fbbf24;
  box-shadow: 0 2px 8px rgba(146, 64, 14, 0.2);
}

.cmp-note-date {
  color: #9ca3af;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ========================================
   MODAL SYSTEM
   ======================================== */

.cmp-modal {
  display: none;
  position: fixed;
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cmp-modal-content {
  background: white;
  margin: 2% auto;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cmp-modal-header {
  background: linear-gradient(135deg, #188ece 0%, #1680b9 100%);
  background: linear-gradient(135deg, #188ece, #1680b9);
  color: white;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmp-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: "Poppins", sans-serif;
}

.cmp-close,
.cmp-close-read-mode {
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cmp-close:hover,
.cmp-close-read-mode:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.cmp-modal-body {
  padding: 32px;
  max-height: 60vh;
  overflow-y: auto;
}

.cmp-modal-footer {
  padding: 24px 32px;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cmp-modal-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* Read View Modal */
.cmp-read-modal .cmp-modal-content {
  max-width: 800px;
}

.cmp-read-modal .cmp-modal-body {
  padding: 40px;
  max-height: 70vh;
}

.cmp-read-title {
  font-size: 28px !important;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: "Poppins", sans-serif;
}

.cmp-read-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  flex-wrap: wrap;
}

.cmp-read-meta .cmp-note-category {
  font-size: 12px;
  padding: 6px 14px;
  max-width: none;
}

.cmp-read-meta .cmp-note-date {
  font-size: 12px;
  margin-left: 0;
}

.cmp-read-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cmp-read-author:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.cmp-read-author .cmp-author-icon {
  font-size: 13px;
}

.cmp-pinned-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
}

.cmp-read-content {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  font-family: "Poppins", sans-serif;
}

.cmp-read-content p {
  margin-bottom: 16px;
}

/* ========================================
   FORM STYLING
   ======================================== */

.cmp-form-group {
  margin-bottom: 24px;
}

.cmp-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.cmp-required {
  color: #dc2626;
}

.cmp-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: end;
}

.cmp-col-6 {
  flex: 1;
}

.cmp-col-3 {
  flex: 0 0 auto;
}

.cmp-category-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmp-inline-category {
  margin-top: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

.cmp-inline-category-input {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmp-inline-category-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

textarea.cmp-form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.cmp-character-counter {
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  font-weight: 500;
  padding: 6px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: "Poppins", sans-serif;
}

.cmp-character-counter.warning {
  color: #d97706;
  background: #fffbeb;
  border-color: #fed7aa;
}

.cmp-character-counter.error {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.cmp-autosave-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #059669;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px 16px;
  background: #ecfdf5;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
  margin-top: 12px;
  font-family: "Poppins", sans-serif;
}

.cmp-autosave-indicator.show-modal {
  opacity: 1;
}

.cmp-autosave-indicator.saving {
  color: #d97706;
  background: #fffbeb;
  border-color: #fed7aa;
}

.cmp-autosave-indicator.error {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

/* ========================================
   COLOR PICKER
   ======================================== */

.cmp-color-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  margin-top: 8px;
}

.cmp-color-option {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: block;
  overflow: hidden;
}

.cmp-color-option:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cmp-color-picker input[type="radio"]:checked + .cmp-color-option {
  border-color: #188ece;
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
  z-index: 10;
}

.cmp-color-picker input[type="radio"]:checked + .cmp-color-option::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  z-index: 2;
  font-family: "Poppins", sans-serif;
}

.cmp-color-option[style*="#ffffff"] {
  border: 3px solid #d1d5db;
}

.cmp-color-picker input[type="radio"]:checked + .cmp-color-option[style*="#ffffff"] {
  border-color: #188ece;
}

.cmp-color-picker input[type="radio"]:checked + .cmp-color-option[style*="#ffffff"]::after {
  color: #188ece;
  text-shadow: none;
}

/* ========================================
   CATEGORY MANAGEMENT
   ======================================== */

.cmp-category-modal .cmp-modal-body {
  padding: 32px;
  max-height: 70vh;
}

.cmp-category-section {
  margin-bottom: 32px;
}

.cmp-category-section:last-child {
  margin-bottom: 0;
}

.cmp-category-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  font-family: "Poppins", sans-serif;
}

.cmp-category-form {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.cmp-category-form .cmp-form-row {
  align-items: end;
  gap: 16px;
  margin-bottom: 0;
}

.cmp-category-form .cmp-form-group {
  margin-bottom: 0;
}

.cmp-category-form .cmp-form-group:first-child {
  flex: 1;
}

.cmp-category-form .cmp-form-group:last-child {
  flex: 0 0 auto;
}

.cmp-category-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  font-family: "Poppins", sans-serif;
}

.cmp-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-height: 350px;
  overflow-y: auto;
}

.cmp-categories-list::-webkit-scrollbar {
  width: 8px;
}

.cmp-categories-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cmp-categories-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.cmp-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
  gap: 16px;
}

.cmp-category-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cmp-category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cmp-category-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmp-category-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  word-break: break-word;
}

.cmp-category-meta {
  font-size: 12px;
  color: #6b7280;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cmp-category-owner {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.cmp-category-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cmp-edit-category-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #188ece;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
}

.cmp-edit-category-input:focus {
  outline: none;
  border-color: #1680b9;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cmp-edit-actions {
  display: flex;
  gap: 8px;
}

.cmp-edit-actions .cmp-btn {
  flex: 1;
  justify-content: center;
}

.cmp-category-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.cmp-category-actions .cmp-btn {
  padding: 8px 16px;
  font-size: 13px;
  min-width: auto;
  height: auto;
  white-space: nowrap;
}

.cmp-no-categories {
  text-align: center;
  color: #6b7280;
  padding: 40px 24px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  margin: 20px 0 0 0;
  font-family: "Poppins", sans-serif;
}

.cmp-no-categories h5 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  font-family: "Poppins", sans-serif;
}

.cmp-no-categories p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-family: "Poppins", sans-serif;
}

/* ========================================
   TEAM NOTES STYLES
   ======================================== */

.cmp-team-header {
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border: 2px solid #0288d1;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmp-team-icon {
  background: #0288d1;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.cmp-team-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #01579b;
  font-family: "Poppins", sans-serif;
}

.cmp-team-info p {
  margin: 0;
  font-size: 14px;
  color: #0277bd;
  font-family: "Poppins", sans-serif;
}

.cmp-permission-denied {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 16px 0;
  font-family: "Poppins", sans-serif;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.cmp-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 2px dashed #d1d5db;
  margin: 40px 0;
  font-family: "Poppins", sans-serif;
}

.cmp-empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.cmp-empty-state h3 {
  font-size: 22px;
  color: #374151;
  margin-bottom: 12px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.cmp-empty-state p {
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 24px;
  font-family: "Poppins", sans-serif;
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

.cmp-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  backdrop-filter: blur(8px);
  font-family: "Poppins", sans-serif;
}

.cmp-notification.show-notification {
  transform: translateX(0);
}

.cmp-notification-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.cmp-notification-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-left: 4px solid #991b1b;
}

.cmp-notification-warning {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ========================================
   LOADING STATES
   ======================================== */

.cmp-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.cmp-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #188ece;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .cmp-notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
  }

  .cmp-toolbar-filters {
    gap: 16px;
  }
  
  .cmp-filter-group {
    min-width: 180px;
  }
  
  .cmp-add-category-group {
    min-width: 250px;
  }

  .cmp-filters-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .cmp-filters-grid > .cmp-filter-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .cmp-filters-grid > .cmp-filter-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .cmp-tall-card {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .cmp-wide-card {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  #cmp-manage-categories-btn {
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  .cmp-toolbar {
    flex-wrap: wrap;
  }

  .cmp-toolbar-left {
    min-width: 250px;
    max-width: 400px;
  }

  .cmp-toolbar-right {
    min-width: 300px;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .cmp-toolbar-right {
    min-width: 250px;
  }

  .cmp-toolbar-right .cmp-select {
    min-width: 150px;
  }

  .cmp-toolbar-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .cmp-filter-group {
    min-width: auto;
    width: 100%;
  }
  
  .cmp-add-category-group {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mp_wrapper.cmp-notes-wrapper,
  .cmp-notes-container {
    padding: 20px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .cmp-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 32px;
  }

  .cmp-header-right {
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .cmp-header-right .cmp-btn {
    margin-top: 27px;
    margin-left: 0 !important;
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }

  .cmp-header-info h2 {
    font-size: 28px;
  }

  .cmp-stats {
    justify-content: space-around;
    width: 100%;
    display: flex;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .cmp-stat {
    width: 100%;
    text-align: center;
    flex: 1;
    padding: 0 8px;
  }

  .cmp-stat:after {
    display: none;
  }

  .cmp-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .cmp-toolbar-left {
    min-width: auto;
    max-width: 100%;
  }

  .cmp-toolbar-right {
    justify-content: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cmp-toolbar-right .cmp-select,
  .cmp-toolbar-right .cmp-btn {
    width: 100%;
  }

  .cmp-toolbar-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .cmp-filter-group {
    width: 100%;
  }

  .cmp-filters-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 16px;
  }
  
  .cmp-filters-grid > .cmp-filter-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .cmp-filters-grid > .cmp-filter-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .cmp-tall-card {
    grid-column: 1;
    grid-row: 3;
  }

  .cmp-wide-card {
    grid-column: 1;
    grid-row: 4;
  }

  .cmp-filter-card {
    padding: 20px;
  }

  .cmp-add-category-inline {
    flex-direction: column;
    gap: 12px;
  }

  .cmp-add-category-inline .cmp-btn {
    width: 100%;
    justify-content: center;
  }

  .cmp-select,
  #cmp-manage-categories-btn {
    width: 100%;
  }

  .cmp-notes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #cmp-notes-display {
    margin-top: 32px;
  }

  #cmp-pinned-section {
    padding: 24px 20px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  #cmp-pinned-section .cmp-section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  #cmp-pinned-section .cmp-section-title .cmp-pin-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  #cmp-all-notes-section .cmp-section-title {
    font-size: 22px;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cmp-notes-section {
    margin-bottom: 32px;
  }

  .cmp-section-divider {
    margin: 32px 0;
  }

  .cmp-modal {
    padding: 16px;
  }

  .cmp-modal-content {
    width: 95% !important;
    max-width: 95% !important;
    border-radius: 20px;
    max-height: 95vh;
    margin: 5% auto !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cmp-modal-header {
    padding: 20px 24px;
    border-radius: 20px 20px 0 0;
  }

  .cmp-modal-header h3 {
    font-size: 20px;
  }

  .cmp-modal-body {
    padding: 24px;
    max-height: 60vh;
  }

  .cmp-read-modal .cmp-modal-body {
    padding: 24px;
    max-height: 65vh;
  }

  .cmp-read-title {
    font-size: 24px;
  }

  .cmp-modal-footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    border-radius: 0 0 20px 20px;
  }

  .cmp-modal-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    gap: 12px;
  }

  .cmp-modal-actions .cmp-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }

  .cmp-form-row {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .cmp-color-picker {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .cmp-color-option {
    width: 40px;
    height: 40px;
  }

  .cmp-inline-category-input {
    gap: 16px;
  }

  .cmp-inline-category-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cmp-inline-category-actions .cmp-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .cmp-category-form .cmp-form-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: none;
  }

  .cmp-category-form .cmp-form-group:first-child,
  .cmp-category-form .cmp-form-group:last-child {
    flex: none;
    width: 100%;
  }

  .cmp-category-form .cmp-form-group .cmp-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .cmp-read-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cmp-read-meta .cmp-note-category,
  .cmp-read-meta .cmp-note-date,
  .cmp-read-author,
  .cmp-pinned-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .cmp-read-author .cmp-author-icon {
    font-size: 12px;
  }

  .cmp-notification {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .cmp-category-modal .cmp-modal-content {
    width: 95%;
    max-width: 95%;
    margin: 2.5% auto;
  }

  .cmp-category-modal .cmp-modal-body {
    padding: 20px;
  }

  .cmp-category-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .cmp-category-form {
    padding: 16px;
    border-radius: 10px;
  }

  .cmp-category-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .cmp-category-info {
    width: 100%;
  }

  .cmp-category-display {
    gap: 8px;
  }

  .cmp-category-name {
    font-size: 15px;
    line-height: 1.4;
  }

  .cmp-category-meta {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .cmp-category-edit-form {
    gap: 10px;
  }

  .cmp-edit-category-input {
    padding: 12px 14px;
    font-size: 15px;
  }

  .cmp-edit-actions {
    flex-direction: row;
    gap: 8px;
  }

  .cmp-edit-actions .cmp-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }

  .cmp-category-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .cmp-category-actions .cmp-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  .cmp-categories-list {
    max-height: 400px;
    gap: 10px;
  }

  .cmp-no-categories {
    padding: 30px 20px;
    font-size: 14px;
  }

  .cmp-note-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 14px;
  }

  .cmp-note-meta-left {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cmp-note-category {
    padding: 5px 10px;
    font-size: 10px;
    max-width: calc(50% - 4px);
    flex-shrink: 1;
  }

  .cmp-note-author {
    padding: 5px 10px;
    font-size: 10px;
    max-width: calc(50% - 4px);
    flex-shrink: 1;
  }

  .cmp-author-icon {
    font-size: 11px;
  }

  .cmp-note-date {
    font-size: 10px;
    width: 100%;
    text-align: left;
    margin-left: 0;
    color: #9ca3af;
    padding-top: 4px;
  }

  .cmp-team-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cmp-team-info h3 {
    font-size: 16px;
  }

  .cmp-team-info p {
    font-size: 13px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .cmp-note-meta {
    flex-direction: row;
    align-items: center;
  }

  .cmp-note-meta-left {
    flex: 1;
  }

  .cmp-note-date {
    width: auto;
    padding-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .mp_wrapper.cmp-notes-wrapper,
  .cmp-notes-container {
    padding: 16px !important;
  }

  .cmp-header-info h2 {
    font-size: 24px;
  }

  .cmp-note-card {
    padding: 20px;
    min-height: 160px;
  }

  .cmp-modal-content {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px !important;
    transform: none;
    position: relative;
    top: auto;
    left: auto;
  }

  .cmp-modal-header,
  .cmp-modal-body,
  .cmp-modal-footer {
    padding: 16px;
  }

  .cmp-modal-body {
    max-height: 50vh;
  }

  .cmp-form-group {
    margin-bottom: 20px;
  }

  .cmp-color-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .cmp-color-option {
    width: 36px;
    height: 36px;
  }

  #cmp-pinned-section {
    padding: 20px 16px;
    margin-bottom: 32px;
  }

  #cmp-pinned-section .cmp-section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  #cmp-all-notes-section .cmp-section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .cmp-toolbar-container {
    gap: 16px;
    margin-bottom: 32px;
  }

  .cmp-filters-grid {
    gap: 12px;
  }

  .cmp-filter-card {
    padding: 16px;
  }

  .cmp-card-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .cmp-card-content {
    gap: 12px;
  }

  .cmp-search-wrapper .cmp-form-control,
  .cmp-select-full,
  .cmp-add-category-inline .cmp-form-control {
    height: 44px;
    font-size: 14px;
  }

  .cmp-category-modal .cmp-modal-body {
    padding: 16px;
  }

  .cmp-category-form {
    padding: 14px;
  }

  .cmp-category-form .cmp-form-row {
    padding: 12px;
    gap: 10px;
  }

  .cmp-category-section h4 {
    font-size: 15px;
  }

  .cmp-category-item {
    padding: 14px;
    gap: 10px;
  }

  .cmp-category-name {
    font-size: 14px;
  }

  .cmp-category-meta {
    font-size: 11px;
  }

  .cmp-edit-category-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .cmp-edit-actions .cmp-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .cmp-category-actions .cmp-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .cmp-categories-list {
    max-height: 350px;
  }

  .cmp-note-meta {
    gap: 10px;
    padding-top: 12px;
  }

  .cmp-note-meta-left {
    gap: 6px;
  }

  .cmp-note-category,
  .cmp-note-author {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 10px;
    max-width: 100%;
  }

  .cmp-note-category {
    min-width: 0;
  }

  .cmp-note-author {
    flex: 0 1 auto;
    min-width: fit-content;
  }

  .cmp-author-icon {
    font-size: 10px;
  }

  .cmp-note-date {
    font-size: 9px;
    padding-top: 2px;
  }

  .cmp-read-meta {
    gap: 8px;
    padding-bottom: 14px;
  }

  .cmp-read-meta .cmp-note-category,
  .cmp-read-meta .cmp-note-date,
  .cmp-read-author,
  .cmp-pinned-badge {
    font-size: 10px;
    padding: 4px 9px;
  }

  .cmp-filter-label {
    font-size: 12px;
  }
  
  .cmp-add-category-inline .cmp-form-control {
    font-size: 14px;
  }
}