/* === SimpleSticky Component Styles === */

/* ─────────────────────────────────────
   Quick Memo
   ───────────────────────────────────── */

.quick-memo {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, var(--memo-yellow) 0%, var(--memo-yellow-dark) 100%);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md), 2px 3px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: rotate(-3deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.quick-memo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.quick-memo:hover {
  transform: rotate(-1deg) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.quick-memo:active {
  transform: rotate(-2deg) scale(0.97);
}

.quick-memo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────
   Filter Tabs
   ───────────────────────────────────── */

.filter-tabs {
  display: flex;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex: 1;
  max-width: 180px;
}

.filter-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-sm);
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-primary);
}

.filter-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.filter-tab.active {
  background: rgba(0, 0, 0, 0.06);
}

.filter-tab + .filter-tab {
  border-left: 1px solid #eee;
}

.filter-tab-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1px;
  white-space: nowrap;
}

.filter-tab-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ─────────────────────────────────────
   Calendar Widget
   ───────────────────────────────────── */

.calendar-widget {
  width: 64px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
  text-align: center;
}

.calendar-day-name {
  background: var(--cal-red);
  color: var(--text-white);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.calendar-date {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 2px 0 6px;
  line-height: 1;
}

/* ─────────────────────────────────────
   Checklist Summary
   ───────────────────────────────────── */

.checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.checklist-item .icon svg {
  fill: rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────
   Category Ribbon
   ───────────────────────────────────── */

.category-ribbon {
  display: flex;
  align-items: center;
  height: var(--ribbon-height);
  border-radius: var(--radius-md);
  padding: 0 var(--space-md) 0 16px;
  cursor: pointer;
  position: relative;
  z-index: 1;

  /* 2. The 3D Edges (Inner highlight + heavy drop shadow) */
  box-shadow: 
    inset 0px 2px 2px rgba(255, 255, 255, 0.4),
    inset 0px -2px 4px rgba(0, 0, 0, 0.2),
    0px 8px 12px rgba(0, 0, 0, 0.6);

  /* 3. The Physical Cut (adds a crisp edge to the material) */
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  box-sizing: border-box;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 14px;
}

.category-ribbon + .category-ribbon {
  margin-top: -10px;
}

/* File-folder tab protrusion */
.category-ribbon::before {
  content: '';
  position: absolute;
  bottom: calc(100% - 2px);
  left: 16px;
  width: 52px;
  height: 14px;
  background: inherit;
  border-radius: 6px 6px 0 0;
  transform-origin: center bottom;
  perspective-origin: center bottom;
  transform: perspective(30px) rotateX(15deg);
  
  box-shadow: 
    inset 1px 2px 2px rgba(255, 255, 255, 0.4),
    inset -1px 0px 2px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.category-ribbon:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.category-ribbon:active {
  transform: translateY(0) scale(0.99);
}

.ribbon-icon-wrapper {
  width: var(--icon-size);
  height: var(--icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px 0 0;
  flex-shrink: 0;
}

.ribbon-icon-wrapper .icon svg {
  fill: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  width: 24px;
  height: 24px;
}

.ribbon-name {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────
   Toolbar
   ───────────────────────────────────── */

.toolbar-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.toolbar-btn:active {
  transform: scale(0.95);
}

.toolbar-btn .icon svg {
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.2s ease;
}

.toolbar-btn:hover .icon svg {
  fill: rgba(255, 255, 255, 0.9);
}

/* ─────────────────────────────────────
   Page Dots
   ───────────────────────────────────── */

.page-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-dot.active {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.3);
}

/* ─────────────────────────────────────
   Sticky Note (Board View)
   ───────────────────────────────────── */

.sticky-note {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  min-height: 130px;
  position: relative;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sticky-note:hover {
  transform: translateY(-3px) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
}

.sticky-note.done {
  opacity: 0.7;
}

.sticky-note.done .sticky-note-title,
.sticky-note.done .sticky-note-body {
  text-decoration: line-through;
  color: var(--text-muted);
}

.sticky-note-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sticky-note:hover .sticky-note-actions {
  opacity: 1;
}

.sticky-note-action-btn {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
  padding: 0;
}

.sticky-note-action-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.sticky-note-action-btn .icon svg {
  fill: var(--text-secondary);
}

.sticky-note-action-btn.delete:hover {
  background: rgba(229, 57, 53, 0.15);
}

.sticky-note-action-btn.delete:hover .icon svg {
  fill: var(--cal-red);
}

.sticky-note-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: var(--font-primary);
  padding: 0;
  line-height: 1.3;
}

.sticky-note-title::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.sticky-note-body {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: var(--font-primary);
  line-height: 1.5;
  padding: 0;
}

.sticky-note-body::placeholder {
  color: rgba(0, 0, 0, 0);
}

.sticky-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sticky-note-date {
  font-size: 10px;
  color: var(--text-muted);
}

.sticky-note-done-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.sticky-note-done-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.sticky-note-done-btn .icon svg {
  fill: var(--text-muted);
}

.sticky-note.done .sticky-note-done-btn .icon svg {
  fill: #4CAF50;
}

/* ─────────────────────────────────────
   Board View Header
   ───────────────────────────────────── */

.board-back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.board-back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.board-back-btn .icon svg {
  fill: var(--text-white);
}

.board-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.board-count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-left: auto;
}

/* ─────────────────────────────────────
   FAB (Floating Action Button)
   ───────────────────────────────────── */

.fab-add {
  position: fixed;
  bottom: calc(var(--toolbar-height) + var(--space-md));
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
}

.fab-add:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.fab-add:active {
  transform: scale(0.95);
}

.fab-add .icon svg {
  fill: var(--text-white);
}

/* ─────────────────────────────────────
   Modal
   ───────────────────────────────────── */

.modal {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 90%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.modal-input {
  width: 100%;
  padding: 10px var(--space-md);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-primary);
  margin-bottom: var(--space-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.modal-textarea {
  width: 100%;
  padding: 10px var(--space-md);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-primary);
  margin-bottom: var(--space-md);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.modal-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: background 0.2s ease, transform 0.1s ease;
}

.modal-btn:active {
  transform: scale(0.97);
}

.modal-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-white);
}

.modal-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-btn-secondary {
  background: #f0f0f0;
  color: var(--text-secondary);
}

.modal-btn-secondary:hover {
  background: #e4e4e4;
}

/* ─────────────────────────────────────
   Empty State
   ───────────────────────────────────── */

.empty-text {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

.empty-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
