/* Voice Notes Module Styles for Sotka3 */
.module-slot-notes {
  padding: 12px;
}

.notes-module {
  background: #242A38;
  border-radius: 16px;
  overflow: hidden;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notes-logo {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c6dfa, #6dfabd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notes-count {
  font-size: 11px;
  color: #8b9bb4;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 12px;
}

.notes-cats-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notes-cats-bar::-webkit-scrollbar { display: none; }

.notes-cat-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #8b9bb4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.notes-cat-btn.active {
  background: #7c6dfa;
  color: #fff;
  border-color: #7c6dfa;
}
.notes-cat-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.notes-cat-add-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  background: transparent;
  color: #8b9bb4;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-list {
  padding: 12px 16px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.notes-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--notes-cat-color, #7c6dfa);
  border-radius: 3px 0 0 3px;
}

.notes-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.notes-card-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--notes-cat-color, #7c6dfa);
  opacity: 0.8;
}

.notes-card-time {
  font-size: 9px;
  color: #8b9bb4;
}

.notes-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: #e8e8f0;
  word-break: break-word;
}

.notes-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.notes-card-action {
  font-size: 10px;
  color: #8b9bb4;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.notes-card-action.delete:hover { color: #fa6d6d; }

.notes-empty {
  text-align: center;
  padding: 32px 16px;
  color: #8b9bb4;
}
.notes-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.4; }
.notes-empty-text { font-size: 13px; line-height: 1.5; }

.notes-record-area {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.notes-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.notes-waveform.active { opacity: 1; }
.notes-wave-bar {
  width: 3px;
  height: 4px;
  background: #ff4444;
  border-radius: 2px;
  animation: notes-wave 0.8s ease-in-out infinite;
}
@keyframes notes-wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.notes-rec-status {
  font-size: 11px;
  color: #8b9bb4;
  min-height: 16px;
  text-align: center;
}
.notes-rec-status.recording { color: #ff4444; animation: notes-pulse 1s infinite; }
@keyframes notes-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.notes-rec-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 20px rgba(0,0,0,0.3);
}
.notes-rec-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.notes-rec-btn.idle::before { border-color: #7c6dfa; opacity: 0.4; }
.notes-rec-btn.recording::before {
  border-color: #ff4444;
  opacity: 1;
  animation: notes-spin 2s linear infinite;
}
@keyframes notes-spin {
  to { transform: rotate(360deg); }
}
.notes-rec-btn.recording { background: #2a0a0a; box-shadow: 0 0 30px rgba(255,68,68,0.3); }
.notes-mic-icon { font-size: 22px; }

/* Modals */
.notes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.notes-modal-overlay.open { opacity: 1; pointer-events: all; }

.notes-modal {
  width: 100%;
  max-width: 430px;
  background: #242A38;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notes-modal-overlay.open .notes-modal { transform: translateY(0); }

.notes-modal-handle {
  width: 32px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.notes-modal-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #e8e8f0;
}

.notes-modal-text {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8f0;
  margin-bottom: 14px;
  min-height: 70px;
  max-height: 130px;
  overflow-y: auto;
}

.notes-modal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.notes-modal-cat {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #8b9bb4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.notes-modal-cat.selected { color: #fff; border-color: transparent; }

.notes-modal-save {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #7c6dfa;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.notes-input-field, .notes-textarea-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  color: #e8e8f0;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
}
.notes-textarea-field {
  resize: none;
  min-height: 80px;
}

.notes-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.notes-modal-btns { display: flex; gap: 8px; }
.notes-modal-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #8b9bb4;
  font-size: 14px;
  cursor: pointer;
}
.notes-modal-ok {
  flex: 2;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #7c6dfa;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Toast */
.notes-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #242A38;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s;
}
.notes-toast.show { transform: translateX(-50%) translateY(0); }
.notes-toast.success { border-color: #6dfabd; color: #6dfabd; }
.notes-toast.error { border-color: #fa6d6d; color: #fa6d6d; }
