/*
 * Notes Layout & Styles
 */

@layer components {
  .notes-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    align-items: flex-start;
  }

  .notes-main {
    flex: 1;
    min-width: 0;
  }

  .notes-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .note-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .note-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
  }

  .note-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
  }

  .note-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff;
    color: #4f46e5;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .note-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .note-title {
    font-weight: 600;
    font-size: 14.5px;
    color: #0f172a;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .note-title:hover {
    color: #4f46e5;
  }

  .note-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
  }

  .note-badge-encrypted {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #ecfdf5;
    color: #065f46;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
  }

  .note-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
  }

  /* Legacy support */
  .table-note-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .table-note-content:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }

  .table-note-content a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #0f172a;
  }

  .table-note-content a span {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
  }

  .table-note-content a small {
    font-size: 12px;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
  }

  @media only screen and (max-width: 1024px) {
    .notes-layout {
      flex-direction: column;
    }
    .notes-sidebar {
      width: 100%;
    }
  }
}