/* ==========================================================================
   LUMEYA.AI — DESIGN SYSTEM & CUSTOM CSS
   ========================================================================== */

/* 1. RESET & VARIABLES */
:root {
  /* Color Palette */
  --bg-darker: #05040a;
  --bg-dark: #0a0915;
  --bg-card: rgba(16, 14, 34, 0.45);
  --bg-card-hover: rgba(24, 21, 51, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.2);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Theme Vibes (Gradients & Glowing Colors) */
  --cosmic-glow: #a855f7;
  --cosmic-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  
  --aurora-glow: #06b6d4;
  --aurora-gradient: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  
  --sunset-glow: #f43f5e;
  --sunset-gradient: linear-gradient(135deg, #f43f5e 0%, #d946ef 100%);
  
  --amber-glow: #f59e0b;
  --amber-gradient: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);

  --error-color: #ef4444;
  
  /* Typography */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 2. MOTION GRAPHICS & BACKGROUND SYSTEM */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: var(--cosmic-glow);
  animation: float 20s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: -15%;
  right: 15%;
  width: 50vw;
  height: 50vw;
  background: var(--aurora-glow);
  animation: float 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  top: 30%;
  right: -5%;
  width: 35vw;
  height: 35vw;
  background: var(--sunset-glow);
  animation: float 18s ease-in-out infinite alternate;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4%, 6%, 0); }
  100% { transform: translate3d(-2%, -3%, 0); }
}

/* 3. CORE LAYOUT STYLING */
.app-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.screen.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.96) translateY(15px);
  pointer-events: none;
}

/* 4. GLASSMORPHISM CARDS & CORE UI */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: rgba(10, 9, 21, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-glow {
  background: var(--cosmic-gradient);
  border: none;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-glow:hover {
  background: var(--cosmic-gradient);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.8) 0%, rgba(99, 102, 241, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}

.btn-primary:hover {
  background: var(--cosmic-gradient);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fff;
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Form inputs styling */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2px 6px;
  transition: var(--transition-smooth);
}

.input-icon {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 1rem;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.input-wrapper:focus-within {
  border-color: var(--cosmic-glow);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   5. LOCK SCREEN / COMING SOON VISUALS
   ========================================================================== */
.lock-card {
  width: 90%;
  max-width: 500px;
  padding: 45px 35px;
  text-align: center;
  position: relative;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Language Switcher Styling */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 10;
}

.lang-switcher-header {
  position: static;
  margin-right: 15px;
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
  color: var(--text-primary);
}

.lang-toggle-btn.active {
  color: var(--cosmic-glow);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-header {
  margin-bottom: 30px;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 40px;
  background: var(--cosmic-gradient);
  filter: blur(25px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: -1;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding-left: 0.15em;
  background: linear-gradient(90deg, #fff, #b886fc, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 5s linear infinite;
}

@keyframes shimmer-text {
  to { background-position: 200% center; }
}

.brand-subtitle {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--cosmic-glow);
  font-weight: 600;
  display: block;
  margin-top: 5px;
  opacity: 0.9;
}

.teaser-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.teaser-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.error-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--error-color);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 15px;
  animation: shake 0.4s ease-in-out;
}

.error-msg.hidden {
  display: none !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.card-footer {
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   6. WORKSPACE SCREEN (NOTES APP VISUALS)
   ========================================================================== */
#workspace-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  height: 75px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cosmic-glow);
  box-shadow: 0 0 10px var(--cosmic-glow);
}

.logo-text .text-glow {
  color: var(--cosmic-glow);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.badge {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--cosmic-glow);
}

.header-center {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: var(--transition-fast);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.search-bar-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-bar-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* Workspace main content structure */
.workspace-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
  padding: 25px 30px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.note-creation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* Color theme radio buttons */
.theme-selectors {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.theme-radio {
  cursor: pointer;
  position: relative;
}

.theme-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.color-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.theme-cosmic .color-dot { background: var(--cosmic-gradient); }
.theme-aurora .color-dot { background: var(--aurora-gradient); }
.theme-sunset .color-dot { background: var(--sunset-gradient); }
.theme-amber .color-dot { background: var(--amber-gradient); }

/* Checked state styling for theme selector */
.theme-radio input:checked + .color-dot {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Stats and Actions Dashboard Panel */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px 6px;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.stats-actions button {
  flex: 1;
}

/* Notes display Grid */
.notes-display-area {
  width: 100%;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-content: start;
  min-height: 400px;
  position: relative;
}

/* Empty State visual */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  animation: cardFadeIn 0.8s ease;
}

.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.empty-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  animation: spin 15s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-icon {
  font-size: 2rem;
  color: var(--cosmic-glow);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.empty-state h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.5;
}

/* Individual Note Card Component */
.note-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: noteCardSpawn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  height: max-content;
}

@keyframes noteCardSpawn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.note-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.note-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

/* Color thematic custom styles for note cards */
.note-card.theme-cosmic {
  border-left: 4px solid var(--cosmic-glow);
}
.note-card.theme-cosmic:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.15);
}
.note-card.theme-cosmic .note-tag {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.note-card.theme-aurora {
  border-left: 4px solid var(--aurora-glow);
}
.note-card.theme-aurora:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15);
}
.note-card.theme-aurora .note-tag {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.note-card.theme-sunset {
  border-left: 4px solid var(--sunset-glow);
}
.note-card.theme-sunset:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.15);
}
.note-card.theme-sunset .note-tag {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.note-card.theme-amber {
  border-left: 4px solid var(--amber-glow);
}
.note-card.theme-amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15);
}
.note-card.theme-amber .note-tag {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

/* Content within card */
.note-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.note-card h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
}

.note-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.note-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.note-actions {
  display: flex;
  gap: 6px;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

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

.note-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.note-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error-color);
}

.note-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Card deletion fade effect */
.note-card.deleting {
  animation: noteCardDelete 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes noteCardDelete {
  to {
    opacity: 0;
    transform: scale(0.85) translateY(15px);
  }
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .workspace-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .sidebar-area {
    position: static;
  }
}

@media (max-width: 768px) {
  .workspace-header {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  
  .header-center {
    width: 100%;
    margin: 0;
    max-width: none;
  }
  
  .header-right {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .lock-card {
    padding: 30px 20px;
  }
  
  .brand-title {
    font-size: 2rem;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }
}
