/**
 * All-in-One Sticky Anything - Sticky Notes styles
 */
#ai1wpsa-container {
  position: relative;
  z-index: 100;
}

.ai1wpsa-note {
  position: fixed;
  min-width: 160px;
  min-height: 140px;
  background: #fff9b0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: both;
  font-family: Arial, sans-serif;
}

.ai1wpsa-note.ai1wpsa-dragging {
  opacity: 0.92;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.ai1wpsa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.06);
  cursor: move;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  flex: 0 0 auto;
}

.ai1wpsa-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  color: #444;
  border-radius: 3px;
}

.ai1wpsa-toolbar button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.ai1wpsa-close:hover {
  color: #b32d2e;
}

.ai1wpsa-body {
  flex: 1 1 auto;
  padding: 10px 12px;
  overflow: auto;
  outline: none;
  line-height: 1.45;
  word-wrap: break-word;
}

.ai1wpsa-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(0, 0, 0, 0.4);
}

.ai1wpsa-popover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  font-family: Arial, sans-serif;
  color: #333;
  overflow: hidden;
}

.ai1wpsa-popover.ai1wpsa-open {
  display: flex;
}

.ai1wpsa-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}

.ai1wpsa-popover-title {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.ai1wpsa-popover-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #666;
  padding: 2px 6px;
  border-radius: 3px;
}

.ai1wpsa-popover-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #b32d2e;
}

.ai1wpsa-popover-body {
  padding: 10px 12px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.ai1wpsa-actions {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.ai1wpsa-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  text-align: left;
  padding: 7px 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
}

.ai1wpsa-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ai1wpsa-action-btn .ai1wpsa-icon {
  width: 16px;
  display: inline-flex;
  justify-content: center;
  font-size: 13px;
}

.ai1wpsa-action-btn.ai1wpsa-danger:hover {
  background: rgba(179, 45, 46, 0.08);
  color: #b32d2e;
}

.ai1wpsa-section {
  margin-bottom: 10px;
}

.ai1wpsa-popover-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  margin: 0 0 6px;
  display: block;
  font-weight: 600;
}

.ai1wpsa-theme-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai1wpsa-theme-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  text-align: left;
}

.ai1wpsa-theme-row:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ai1wpsa-theme-row.ai1wpsa-active {
  background: rgba(34, 113, 177, 0.1);
}

.ai1wpsa-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.ai1wpsa-theme-row.ai1wpsa-active .ai1wpsa-swatch {
  outline: 2px solid #2271b1;
  outline-offset: 1px;
}

.ai1wpsa-popover select,
.ai1wpsa-popover input[type=color] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.ai1wpsa-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2271b1;
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  line-height: 1;
}

.ai1wpsa-fab:hover {
  background: #135e96;
}

#wp-admin-bar-ai1wpsa-notes-toggle .ab-icon:before {
  top: 2px;
}

#wp-admin-bar-ai1wpsa-notes-toggle.ai1wpsa-notes-hidden .ab-item {
  opacity: 0.55;
}