/* Notes Trigger Button */ 
.notes-trigger {
  position: fixed;
  top: 680px;
  left: 5px;
  z-index: 1029;
}
  
  .btn-notes-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #5e72e4;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .btn-notes-toggle:hover {
    transform: scale(1.05);
    background-color: #5e72e4;
    color: #fff;
  }
  
  /* Notes Panel */
  .notes-panel {
    position: fixed;
    top: 90px;
    left: -400px;
    width: 380px;
    height: calc(100vh - 72px);
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    z-index: 10001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 0 8px 8px 0;
  }
  
  .notes-panel.show {
    left: 0;
  }
  
  .notes-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  
  .notes-panel-header h4 {
    margin: 0;
    font-weight: 600;
    color: #32325d;
  }
  
  .header-actions {
    display: flex;
    gap: 10px;
  }
  
  .btn-add-note {
    background-color: #5e72e4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn-add-note:hover {
    background-color: #4b5ccd;
  }
  
  .btn-close {
    background: transparent;
    border: none;
    color: #8898aa;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }
  
  .btn-close:hover {
    color: #525f7f;
  }
  
  /* Search */
  .notes-search {
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
  }
  
  /* Notes Panel Body */
  .notes-panel-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
  }
  
  /* Loading State */
  .notes-loading {
    padding: 30px;
    text-align: center;
    color: #8898aa;
  }
  
  /* Empty State */
  .notes-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #8898aa;
  }
  
  .notes-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.4;
  }
  
  /* Notes Grid */
  .notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }
  
  /* Section Labels */
  .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8898aa;
    margin: 10px 0;
    letter-spacing: 0.1em;
  }
  
  /* Note Card */
  .note-card {
    background-color: #ffeb3b;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(50, 50, 93, 0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 160px;
    overflow: hidden;
  }
  
  .note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(50, 50, 93, 0.15);
  }
  
  .note-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
  }
  
  .note-card:hover .note-actions {
    opacity: 1;
  }
  
  .btn-pin, .btn-delete {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 3px;
    font-size: 0.85rem;
  }
  
  .btn-pin:hover, .btn-delete:hover {
    color: rgba(0, 0, 0, 0.8);
  }
  
  .note-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-right: 40px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .note-preview {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  
  .note-date {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    text-align: right;
  }
  
  /* Note Edit Modal */
  #noteEditModal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
  }
  
  #noteEditModal .modal-header {
    padding: 15px;
    border-bottom: none;
    transition: background-color 0.3s ease;
  }
  
  .note-title-input {
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    background: transparent;
    transition: background-color 0.3s ease;
  }
  
  .note-title-input:focus {
    outline: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .color-picker-dropdown {
    margin-right: 10px;
  }
  
  .color-picker-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
  }
  
  .color-picker-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    min-width: 180px;
  }
  
  .color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .color-option:hover {
    transform: scale(1.1);
  }
  
  .note-content {
    border: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .note-content:focus {
    box-shadow: none;
  }
  
  #noteEditModal .modal-footer {
    border-top: none;
    padding: 10px 15px 15px;
  }
  
  #noteEditModal .modal-footer .btn-pin {
    background-color: transparent;
    color: #525f7f;
    border: 1px solid #e9ecef;
    margin-right: auto;
  }


  
  #noteEditModal .modal-footer .btn-pin:hover {
    background-color: #f8f9fa;
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .notes-panel {
      width: 100%;
      left: -100%;
      border-radius: 0;
    }
    
    .notes-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
  }