@charset "UTF-8";
:root {
  --note-view-transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  --note-view-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --note-view-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --form-width: 440px;
  --form-height: auto;
  --expanded-width: 1100px;
  --expanded-height: 92vh;
  --glass-bg: rgba(var(--color-panel-rgb, 255, 255, 255), 0.85);
  --glass-border: rgba(var(--color-border-rgb, 209, 200, 227), 0.3);
  --glass-blur: 20px;
  --morph-duration: 1.2s;
  --content-reveal-delay: 0.6s;
  --stagger-delay: 0.1s;
}
@media (max-width: 768px) {
  :root {
    --form-width: 95vw;
    --expanded-width: 100vw;
    --expanded-height: 100vh;
    --glass-blur: 10px;
  }
}

.note-view-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-panel) 100%);
}
.note-view-root::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundFloat 20s ease-in-out infinite;
}
@media (max-width: 768px) {
  .note-view-root {
    padding: 0;
    align-items: flex-start;
  }
}

.note-view-container {
  width: 100%;
  max-width: var(--form-width);
  min-height: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1), 0 1px 0 rgba(255, 255, 255, 0.2) inset, var(--shadow-lg);
  position: relative;
  z-index: 10;
  overflow: hidden;
  transition: var(--note-view-transition);
  transform-origin: center;
  will-change: transform, max-width, max-height, border-radius;
  display: flex;
  flex-direction: column;
}
.note-view-container:not(.expanded):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15), 0 1px 0 rgba(255, 255, 255, 0.3) inset, var(--shadow-xl);
}
.note-view-container.morphing-prepare {
  transform: scale(0.98);
  filter: blur(1px);
  transition: var(--note-view-smooth);
}
.note-view-container.morphing {
  transform: scale(1.02);
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: var(--note-view-bounce);
}
.note-view-container.expanded {
  max-width: var(--expanded-width);
  max-height: var(--expanded-height);
  min-height: 600px;
  border-radius: 2.5rem;
  overflow-y: auto;
  padding: 3rem;
  gap: 2.5rem;
  box-shadow: 0 24px 80px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2), 0 1px 0 rgba(255, 255, 255, 0.5) inset, var(--shadow-2xl);
  transform: scale(1) translateZ(0);
  transition: var(--note-view-transition);
  align-items: stretch;
  justify-content: flex-start;
}
@media (max-width: 1024px) {
  .note-view-container.expanded {
    max-width: 98vw;
    max-height: 98vh;
    border-radius: 1.5rem;
    padding: 2rem;
  }
}
@media (max-width: 768px) {
  .note-view-container.expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    max-width: 100vw;
    max-height: 100vh;
    padding: 1.5rem;
  }
}
.note-view-container[hidden] {
  display: none !important;
}

.note-view-state {
  opacity: 1;
  transform: translateY(0);
  transition: var(--note-view-smooth);
}
.note-view-state[hidden] {
  display: none !important;
}
.note-view-state.fading-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.note-view-state.fading-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

.note-view-form {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (max-width: 768px) {
  .note-view-form {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
}

.note-view-headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
  .note-view-headline {
    font-size: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.form-group label {
  font-weight: 600;
  color: var(--color-fg);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}
.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(var(--color-bg-alt-rgb, 236, 232, 243), 0.5);
  border: 2px solid transparent;
  border-radius: 0.875rem;
  font-size: 1rem;
  color: var(--color-fg);
  transition: var(--note-view-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-group input::placeholder {
  color: var(--color-fg-muted);
  opacity: 0.7;
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(var(--color-panel-rgb, 255, 255, 255), 0.9);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15), 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
  transform: translateY(-1px);
}
.form-group input:valid {
  border-color: var(--color-success);
}
.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}
.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label {
  transform: translateY(-2.5rem) scale(0.85);
  color: var(--color-accent);
}

.action-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: white;
  border: none;
  border-radius: 0.875rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--note-view-smooth);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.action-btn:active {
  transform: translateY(0);
}
.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.action-btn.loading {
  position: relative;
  pointer-events: none;
}
.action-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.action-btn.loading span {
  opacity: 0;
}

.note-hint {
  background: rgba(var(--color-info-rgb, 142, 199, 255), 0.1);
  color: var(--color-info);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid rgba(var(--color-info-rgb, 142, 199, 255), 0.2);
}
.note-hint b {
  color: var(--color-accent);
  font-weight: 700;
}

.note-view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  font-weight: 500;
  animation: loadingPulse 2s ease-in-out infinite;
}

.skeleton-loader .skeleton-line {
  height: 1rem;
  background: linear-gradient(90deg, rgba(var(--color-fg-rgb, 7, 37, 54), 0.1) 25%, rgba(var(--color-fg-rgb, 7, 37, 54), 0.2) 50%, rgba(var(--color-fg-rgb, 7, 37, 54), 0.1) 75%);
  background-size: 200% 100%;
  border-radius: 0.5rem;
  animation: shimmer 2s infinite;
  margin-bottom: 0.75rem;
}
.skeleton-loader .skeleton-line.title {
  height: 2rem;
  width: 60%;
}
.skeleton-loader .skeleton-line.subtitle {
  height: 1.25rem;
  width: 40%;
}
.skeleton-loader .skeleton-line.paragraph {
  width: 100%;
}
.skeleton-loader .skeleton-line.paragraph:nth-child(odd) {
  width: 95%;
}
.skeleton-loader .skeleton-line.paragraph:nth-child(even) {
  width: 85%;
}

.note-view-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1.5rem;
}

.error-container {
  max-width: 400px;
}
.error-container .error-illustration {
  margin-bottom: 2rem;
}
.error-container .error-illustration .error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: block;
  color: var(--color-error);
  animation: errorBounce 2s ease-in-out infinite;
}
.error-container .error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-error);
  margin: 0 0 1rem 0;
}
.error-container .error-message {
  color: var(--color-fg-muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}
.error-container .error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-container .error-actions .retry-btn {
  background: var(--color-error);
}
.error-container .error-actions .retry-btn:hover {
  background: var(--color-error-text);
}
.error-container .error-actions .help-btn {
  background: transparent;
  color: var(--color-fg-muted);
  border: 2px solid var(--color-border);
}
.error-container .error-actions .help-btn:hover {
  color: var(--color-fg);
  border-color: var(--color-accent);
}

.note-view-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
  min-height: 0;
  opacity: 0;
  transform: translateY(20px);
}
.note-view-content.revealing {
  animation: contentReveal 0.8s ease-out forwards;
  animation-delay: var(--content-reveal-delay);
}
.note-view-content.revealing .note-header {
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--content-reveal-delay) + 0.1s);
}
.note-view-content.revealing .note-body {
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--content-reveal-delay) + 0.2s);
}
.note-view-content.revealing .note-footer {
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--content-reveal-delay) + 0.3s);
}

.note-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
}
@media (min-width: 768px) {
  .note-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.note-header .note-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--color-accent);
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.note-header .note-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-fg-muted);
}
.note-header .note-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.note-header .note-meta .meta-item .meta-icon {
  opacity: 0.7;
}

.note-body {
  background: rgba(var(--color-bg-alt-rgb, 236, 232, 243), 0.3);
  border-radius: 1.25rem;
  padding: 2.5rem;
  min-height: 300px;
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--color-border-rgb, 209, 200, 227), 0.3);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-fg);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.note-body::-webkit-scrollbar {
  width: 8px;
}
.note-body::-webkit-scrollbar-track {
  background: rgba(var(--color-bg-alt-rgb, 236, 232, 243), 0.3);
  border-radius: 4px;
}
.note-body::-webkit-scrollbar-thumb {
  background: rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
  border-radius: 4px;
}
.note-body::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-accent-rgb, 106, 53, 255), 0.5);
}
@media (max-width: 768px) {
  .note-body {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
}
.note-footer .security-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.note-footer .security-indicators .encryption-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
  color: var(--color-success);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-success-rgb, 56, 217, 169), 0.2);
}
.note-footer .security-indicators .encryption-status .status-icon {
  animation: securityPulse 2s ease-in-out infinite;
}
.note-footer .report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(var(--color-error-rgb, 215, 38, 96), 0.1);
  color: var(--color-error);
  border: 2px solid rgba(var(--color-error-rgb, 215, 38, 96), 0.2);
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--note-view-smooth);
  text-decoration: none;
}
.note-footer .report-btn:hover {
  background: var(--color-error);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-error-rgb, 215, 38, 96), 0.3);
}
.note-footer .report-btn .report-icon {
  font-size: 1.125rem;
}
@media (max-width: 768px) {
  .note-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .note-footer .security-indicators {
    justify-content: center;
  }
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes loadingPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes errorBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes securityPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}
[data-theme=dark] .note-view-container {
  --glass-bg: rgba(var(--color-panel-rgb, 18, 49, 74), 0.85);
  --glass-border: rgba(var(--color-border-rgb, 37, 58, 77), 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.1) inset, var(--shadow-lg);
}
[data-theme=dark] .note-view-container.expanded {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.15) inset, var(--shadow-2xl);
}
[data-theme=dark] .form-group input {
  background: rgba(var(--color-bg-rgb, 7, 37, 54), 0.6);
}
[data-theme=dark] .form-group input:focus {
  background: rgba(var(--color-panel-rgb, 18, 49, 74), 0.9);
}
[data-theme=dark] .note-body {
  background: rgba(var(--color-bg-rgb, 7, 37, 54), 0.4);
  border: 1px solid rgba(var(--color-border-rgb, 37, 58, 77), 0.4);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .note-view-container {
    transition: none !important;
  }
  .note-view-container:hover {
    transform: none !important;
  }
}
@media (prefers-contrast: high) {
  .note-view-container {
    border-width: 3px;
  }
  .form-group input {
    border-width: 3px;
  }
  .action-btn {
    border: 2px solid currentColor;
  }
}
@media (max-width: 480px) {
  .note-view-root {
    padding: 0;
  }
  .note-view-container {
    max-width: 100vw;
    border-radius: 0;
    min-height: 100vh;
  }
  .note-view-container.expanded {
    overflow-y: auto;
    border-radius: 0;
    padding: 1rem;
  }
  .note-view-form {
    padding: 2rem 1rem;
  }
  .note-body {
    padding: 1rem;
    min-height: 200px;
  }
}
.note-view-hidden {
  display: none !important;
}

.note-view-visible {
  display: flex !important;
}

.note-view-fade-in {
  animation: fadeInUp 0.5s ease-out;
}

.note-view-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.close-note-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: rgba(var(--color-error-rgb, 215, 38, 96), 0.1);
  border: 2px solid rgba(var(--color-error-rgb, 215, 38, 96), 0.3);
  border-radius: 50%;
  color: var(--color-error);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--note-view-smooth);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.close-note-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: var(--note-view-smooth);
}
.close-note-btn:hover {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 16px rgba(var(--color-error-rgb, 215, 38, 96), 0.4);
}
.close-note-btn:hover svg {
  transform: scale(1.1);
}
.close-note-btn:active {
  transform: scale(0.95) rotate(90deg);
}
.close-note-btn .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .close-note-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .close-note-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.security-indicators-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.security-indicators-header .encryption-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
  transition: var(--note-view-smooth);
}
.security-indicators-header .encryption-status[data-status=encrypted] {
  background: rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
  color: var(--color-success);
  border-color: rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
}
.security-indicators-header .encryption-status[data-status=zero-knowledge] {
  background: rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
}
.security-indicators-header .encryption-status[data-status=client-side] {
  background: rgba(var(--color-info-rgb, 142, 199, 255), 0.1);
  color: var(--color-info);
  border-color: rgba(var(--color-info-rgb, 142, 199, 255), 0.3);
}
.security-indicators-header .encryption-status .status-icon {
  animation: securityPulse 3s ease-in-out infinite;
}
.security-indicators-header .encryption-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-success-rgb, 56, 217, 169), 0.2);
}
@media (max-width: 768px) {
  .security-indicators-header {
    justify-content: center;
    gap: 0.5rem;
  }
  .security-indicators-header .encryption-status {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }
}

.note-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.note-footer .footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .note-footer .footer-actions {
    flex-direction: column;
    gap: 1rem;
  }
}
.note-footer .secondary-btn {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.note-footer .secondary-btn:hover {
  background: var(--color-accent);
  color: white;
}
.note-footer .security-footer {
  text-align: center;
}
.note-footer .security-footer .security-note {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  font-style: italic;
  line-height: 1.5;
}

.note-view-container.morphing-reverse {
  transition: var(--note-view-transition);
  transform: scale(0.95);
  opacity: 0.8;
  border-radius: 1.5rem;
}
@media (max-width: 768px) {
  .note-view-container.morphing-reverse {
    border-radius: 0;
  }
}

.note-view-container.fade-in {
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.note-hint.success {
  background: rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
}
.note-hint.info {
  background: rgba(var(--color-info-rgb, 142, 199, 255), 0.1);
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 142, 199, 255), 0.3);
}

@keyframes securityPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@media (max-width: 480px) {
  .note-view-container.expanded {
    overflow-y: auto;
  }
  .note-view-container.expanded .note-view-content {
    gap: 1.5rem;
  }
  .note-view-container.expanded .note-header .note-meta .meta-item {
    font-size: 0.8125rem;
  }
  .note-view-container.expanded .security-indicators-header .encryption-status .status-text {
    display: none;
  }
}
.optional-field {
  position: relative;
}
.optional-field label {
  color: var(--color-fg-muted) !important;
  opacity: 0.8;
}
.optional-field input {
  border-style: dashed !important;
  border-color: var(--color-border) !important;
}
.optional-field input:focus {
  border-style: solid !important;
  border-color: var(--color-accent) !important;
}
.optional-field input:not(:placeholder-shown) {
  border-style: solid !important;
}
.optional-field input:not(:placeholder-shown) + label::after {
  content: " ✓";
  color: var(--color-success);
}
.optional-field .field-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
  opacity: 0.8;
}
.optional-field .field-hint .hint-icon {
  font-size: 0.875rem;
}

.note-hint.error {
  background: rgba(var(--color-error-rgb, 215, 38, 96), 0.1);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 215, 38, 96), 0.3);
}

.password-attempts {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(var(--color-warning-rgb, 255, 166, 0), 0.1);
  border: 1px solid rgba(var(--color-warning-rgb, 255, 166, 0), 0.3);
  border-radius: var(--radius-base);
  text-align: center;
}
.password-attempts .attempts-text {
  font-size: 0.875rem;
  color: var(--color-warning);
  font-weight: 600;
}
.password-attempts .attempts-text #attemptsCount {
  font-weight: 700;
  font-size: 1.1em;
}
.password-attempts .attempts-text #attemptsCount[data-attempts="1"] {
  color: var(--color-error);
  animation: dangerPulse 1s ease-in-out infinite;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}
.loading-steps .loading-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-base);
  background: rgba(var(--color-fg-rgb, 7, 37, 54), 0.05);
  opacity: 0.4;
  transition: all 0.3s ease;
}
.loading-steps .loading-step .step-icon {
  font-size: 1.25rem;
  opacity: 0.6;
}
.loading-steps .loading-step.active {
  opacity: 1;
  background: rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
}
.loading-steps .loading-step.active .step-icon {
  opacity: 1;
  animation: stepPulse 1.5s ease-in-out infinite;
}
.loading-steps .loading-step.completed {
  opacity: 0.7;
  background: rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
}
.loading-steps .loading-step.completed .step-icon {
  opacity: 1;
  animation: none;
}

.error-details {
  background: rgba(var(--color-error-rgb, 215, 38, 96), 0.05);
  border-radius: var(--radius-base);
  padding: 1rem;
  margin: 1rem 0;
}
.error-details .error-type {
  font-weight: 600;
  color: var(--color-error);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.error-details .error-suggestions {
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.error-details .error-suggestions ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.error-details .error-suggestions ul li {
  margin: 0.25rem 0;
}

.encryption-status[data-status=password-protected] {
  background: rgba(var(--color-warning-rgb, 255, 166, 0), 0.1);
  color: var(--color-warning);
  border-color: rgba(var(--color-warning-rgb, 255, 166, 0), 0.3);
}
.encryption-status[data-status=password-protected] .status-icon {
  animation: passwordPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}
@keyframes stepPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes passwordPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@media (max-width: 768px) {
  .loading-steps .loading-step {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  .loading-steps .loading-step .step-icon {
    font-size: 1rem;
  }
  .optional-field .field-hint {
    font-size: 0.75rem;
  }
}
.screenshot-protected {
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
@media print {
  .screenshot-protected {
    display: none !important;
  }
}
.screenshot-protected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}
.screenshot-protected.blur-on-focus-loss {
  transition: filter 0.2s ease;
}
.screenshot-protected.blur-on-focus-loss.blurred {
  filter: blur(20px) contrast(0.3);
  -webkit-filter: blur(20px) contrast(0.3);
}

.note-body.screenshot-protected {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
}
.note-body.screenshot-protected::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(106, 53, 255, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(106, 53, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  animation: protectionPulse 3s ease-in-out infinite;
}

.privacy-mode-active .screenshot-protected {
  filter: blur(0px);
  transition: filter 0.1s ease;
}
.privacy-mode-active .screenshot-protected:not(:hover):not(:focus-within) {
  filter: blur(2px);
}
.privacy-mode-active .meta-item, .privacy-mode-active .security-indicators-header {
  opacity: 0.3;
  filter: blur(1px);
}

.recording-detected .screenshot-protected {
  filter: blur(15px) !important;
  opacity: 0.5 !important;
}
.recording-detected .screenshot-protected::before {
  content: "🔒 SCREEN RECORDING DETECTED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(215, 38, 96, 0.9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 10000;
  opacity: 1;
  pointer-events: none;
  text-align: center;
  animation: warningPulse 1s ease-in-out infinite;
}

@keyframes protectionPulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.1;
  }
}
@keyframes warningPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
}
[data-theme=dark] .screenshot-protected.blurred {
  filter: blur(25px) contrast(0.2) brightness(0.3);
}
[data-theme=dark] .recording-detected .screenshot-protected::before {
  background: rgba(139, 69, 19, 0.95);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.form-group.floating-label {
  position: relative;
}
.form-group.floating-label input {
  width: 100%;
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  background: rgba(var(--color-bg-alt-rgb, 236, 232, 243), 0.5);
  border: 2px solid transparent;
  border-radius: 0.875rem;
  font-size: 1rem;
  color: var(--color-fg);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-group.floating-label input::placeholder {
  color: transparent;
}
.form-group.floating-label input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(var(--color-panel-rgb, 255, 255, 255), 0.9);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15), 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
  transform: translateY(-1px);
}
.form-group.floating-label input:valid:not(:placeholder-shown) {
  border-color: var(--color-success);
}
.form-group.floating-label input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}
.form-group.floating-label label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 1rem;
  color: var(--color-fg-muted);
  pointer-events: none;
  background: transparent;
  padding: 0 0.5rem;
  transform-origin: left top;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.2s ease;
}
.form-group.floating-label input:focus + .form-group.floating-label label, .form-group.floating-label input:not(:placeholder-shown) + .form-group.floating-label label {
  transform: translateY(-1.75rem) translateX(-0.25rem) scale(0.85);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--glass-bg, var(--color-panel));
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label {
  transform: translateY(-1.75rem) translateX(-0.25rem) scale(0.85);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--glass-bg, var(--color-panel));
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
.form-group.floating-label input:valid:not(:placeholder-shown) + label {
  color: var(--color-success);
  box-shadow: 0 2px 8px rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
}
.form-group.floating-label input:valid:not(:placeholder-shown) + label::after {
  content: " ✓";
  color: var(--color-success);
  font-weight: 700;
  margin-left: 0.25rem;
  opacity: 0;
  animation: successFadeIn 0.3s ease-out 0.1s forwards;
}
.form-group.floating-label input:invalid:not(:placeholder-shown) + label {
  color: var(--color-error);
  box-shadow: 0 2px 8px rgba(var(--color-error-rgb, 215, 38, 96), 0.1);
}
.form-group.floating-label input:invalid:not(:placeholder-shown) + label::after {
  content: " ⚠";
  color: var(--color-error);
  font-weight: 700;
  margin-left: 0.25rem;
  opacity: 0;
  animation: errorShake 0.4s ease-out forwards;
}
.form-group.floating-label.optional-field input {
  border-style: dashed !important;
  opacity: 0.9;
}
.form-group.floating-label.optional-field input:focus {
  border-style: solid !important;
  opacity: 1;
}
.form-group.floating-label.optional-field input:not(:placeholder-shown) {
  border-style: solid !important;
  opacity: 1;
}
.form-group.floating-label.optional-field label {
  opacity: 0.8;
}
.form-group.floating-label.optional-field label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-fg-muted);
  border-radius: 50%;
  margin-right: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.form-group.floating-label.optional-field input:focus + label::before,
.form-group.floating-label.optional-field input:not(:placeholder-shown) + label::before {
  opacity: 1;
  background: var(--color-accent);
}
.form-group.floating-label.optional-field input:focus + label::after,
.form-group.floating-label.optional-field input:not(:placeholder-shown) + label::after {
  opacity: 0.8;
}
.form-group.floating-label.optional-field input:not(:placeholder-shown) + label::after {
  content: " ✓";
  color: var(--color-success);
  opacity: 1;
}
.form-group.floating-label.optional-field .field-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  opacity: 0.8;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group.floating-label.optional-field .field-hint .hint-icon {
  font-size: 1rem;
  animation: hintPulse 3s ease-in-out infinite;
}
.form-group.floating-label.optional-field input:focus ~ .form-group.floating-label.optional-field .field-hint {
  opacity: 1;
  transform: translateY(0);
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes errorShake {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  75% {
    opacity: 0.8;
    transform: translateX(2px);
  }
}
@keyframes hintPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
.floating-smooth label {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-bouncy label {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-snappy label {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-elegant label {
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .form-group.floating-label input {
    padding: 1.125rem 1rem 0.625rem 1rem;
    font-size: 1rem;
  }
  .form-group.floating-label label {
    top: 1.125rem;
    left: 1rem;
    font-size: 0.95rem;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .form-group.floating-label input:focus + label,
  .form-group.floating-label input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) translateX(-0.25rem) scale(0.9);
    font-size: 0.8125rem;
  }
}
[data-theme=dark] .form-group.floating-label input {
  background: rgba(var(--color-bg-rgb, 7, 37, 54), 0.6);
}
[data-theme=dark] .form-group.floating-label input:focus {
  background: rgba(var(--color-panel-rgb, 18, 49, 74), 0.9);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb, 187, 170, 255), 0.15), 0 4px 12px rgba(var(--color-accent-rgb, 187, 170, 255), 0.1);
}
input:focus + [data-theme=dark] .form-group.floating-label label, input:not(:placeholder-shown) + [data-theme=dark] .form-group.floating-label label {
  background: rgba(var(--color-panel-rgb, 18, 49, 74), 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .form-group.floating-label label {
    transition: transform 0.1s ease, color 0.1s ease, font-size 0.1s ease !important;
  }
}
@media (prefers-contrast: high) {
  .form-group.floating-label input {
    border-width: 3px;
  }
  .form-group.floating-label input:focus {
    border-width: 3px;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
  .form-group.floating-label label {
    font-weight: 700;
  }
  input:focus + .form-group.floating-label label, input:not(:placeholder-shown) + .form-group.floating-label label {
    font-weight: 800;
  }
}
.test-smooth .form-group.floating-label label {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

.test-bouncy .form-group.floating-label label {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease;
}

.test-snappy .form-group.floating-label label {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), color 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* 📎 FILE ATTACHMENTS STYLES */
/* ═══════════════════════════════════════════════════════════════════════════ */
.note-files-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg-secondary, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
}

.files-header {
  margin-bottom: 1rem;
}

.files-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary, #1e293b);
}

.files-icon {
  font-size: 1.5rem;
}

.files-description {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748b);
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.file-attachment-item:hover {
  border-color: var(--color-accent, #3b82f6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.file-icon {
  font-size: 1.25rem;
}

.file-name {
  font-weight: 500;
  color: var(--color-text-primary, #1e293b);
}

.file-size,
.file-type {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748b);
}

.download-file-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent, #3b82f6);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-file-btn:hover {
  background: var(--color-accent-dark, #2563eb);
  transform: translateY(-1px);
}

.download-file-btn:disabled {
  background: var(--color-bg-muted, #94a3b8);
  cursor: not-allowed;
  transform: none;
}

.download-file-btn.downloading {
  background: var(--color-warning, #f59e0b);
}

.download-file-btn.success {
  background: var(--color-success, #10b981);
}

.download-file-btn.error {
  background: var(--color-danger, #ef4444);
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .file-attachment-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .download-file-btn {
    align-self: center;
  }
}
.file-progress-container {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid var(--color-accent);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  animation: slideInFromTop 0.4s ease-out;
}
.file-progress-container .progress-header {
  margin-bottom: 1.5rem;
}
.file-progress-container .progress-header h3 {
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
}
.file-progress-container .overall-progress .progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-fg);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .file-progress-container .overall-progress .progress-stats {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
.file-progress-container .overall-progress .progress-bar-container {
  position: relative;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(var(--color-border-rgb), 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-bar .progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.file-progress-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: white;
  margin-bottom: 1rem;
}
.file-progress-list::-webkit-scrollbar {
  width: 6px;
}
.file-progress-list::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
.file-progress-list::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.file-progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}
.file-progress-item:last-child {
  border-bottom: none;
}
.file-progress-item.active {
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--color-accent);
}
.file-progress-item.completed {
  background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid var(--color-success);
}
.file-progress-item.error {
  background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid var(--color-error);
}
.file-progress-item .file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.file-progress-item .file-info .file-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.file-progress-item .file-info .file-details {
  flex: 1;
  min-width: 0;
}
.file-progress-item .file-info .file-details .file-name {
  font-weight: 600;
  color: var(--color-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.file-progress-item .file-info .file-details .file-size {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
}
.file-progress-item .file-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}
.file-progress-item .file-progress .file-progress-bar {
  width: 120px;
  height: 6px;
}
.file-progress-item .file-progress .file-progress-status {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 60px;
  text-align: right;
  color: var(--color-fg-muted);
}
@media (max-width: 768px) {
  .file-progress-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .file-progress-item .file-progress {
    min-width: auto;
    flex-direction: column;
    gap: 0.5rem;
  }
  .file-progress-item .file-progress .file-progress-bar {
    width: 100%;
  }
}

.progress-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .progress-actions {
    flex-direction: column;
  }
}

.files-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.files-header .file-count-badge {
  color: var(--color-fg-muted);
  font-weight: 400;
}
.files-header .files-actions {
  display: flex;
  gap: 0.75rem;
}
.files-header .files-actions .bulk-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.files-header .files-actions .bulk-action-btn .btn-icon {
  font-size: 1rem;
}
@media (max-width: 768px) {
  .files-header .files-actions {
    flex-direction: column;
  }
  .files-header .files-actions .bulk-action-btn {
    justify-content: center;
  }
}

.file-attachment-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.file-attachment-item.selected {
  border-color: var(--color-accent);
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateX(4px);
}
.file-attachment-item.decrypted {
  border-color: var(--color-success);
  background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
}
.file-attachment-item.decrypted::after {
  content: "✅";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  animation: successBounce 0.5s ease-out;
}
.file-attachment-item .file-select-checkbox {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
}
.file-attachment-item .file-select-checkbox input[type=checkbox] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.file-attachment-item .download-file-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.file-attachment-item .download-file-btn.ready {
  background: var(--color-success);
}
.file-attachment-item .download-file-btn.ready::before {
  content: "✨";
  margin-right: 0.5rem;
}
.file-attachment-item .download-file-btn.downloading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loadingShimmer 1.5s infinite;
}

.bulk-progress {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
}
.bulk-progress .bulk-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-fg);
}
.bulk-progress .bulk-progress-info {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  text-align: center;
}

.optimization-container,
.compression-container {
  background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.optimization-container.visible,
.compression-container.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes loadingShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes successBounce {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.pulsing {
  animation: pulse 2s infinite;
}

[data-theme=dark] .file-progress-container {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: var(--color-accent);
}
[data-theme=dark] .file-progress-list {
  background: var(--color-panel);
  border-color: var(--color-border);
}
[data-theme=dark] .file-progress-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}
[data-theme=dark] .file-progress-item.completed {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}
[data-theme=dark] .file-progress-item.error {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}
[data-theme=dark] .bulk-progress,
[data-theme=dark] .optimization-container,
[data-theme=dark] .compression-container {
  background: linear-gradient(135deg, var(--color-panel) 0%, rgba(var(--color-bg-rgb), 0.8) 100%);
}

@media (max-width: 768px) {
  .file-progress-container {
    padding: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.5rem;
  }
  .files-header .files-title {
    font-size: 1.125rem;
  }
  .files-header .files-actions {
    margin-top: 0.75rem;
  }
  .file-attachment-item {
    padding: 0.75rem;
  }
  .file-attachment-item .file-select-checkbox {
    top: 0.5rem;
    left: 0.5rem;
  }
  .file-attachment-item.decrypted::after {
    top: 0.25rem;
    right: 0.25rem;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .progress-actions .action-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  .file-progress-item .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .file-progress-container,
  .file-attachment-item,
  .progress-fill {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-contrast: high) {
  .file-progress-container {
    border-width: 3px;
  }
  .file-attachment-item {
    border-width: 2px;
  }
  .file-attachment-item.selected, .file-attachment-item.decrypted {
    border-width: 3px;
  }
}
.files-hidden {
  display: none !important;
}

.files-visible {
  display: block !important;
}

.progress-visible {
  display: flex !important;
}

/* ✅ Grace Period Warning Styles */
/* ✅ Grace Period Animation Keyframes */
@keyframes pulseWarning {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes urgentPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}
/* ✅ Grace Period Color States */
@keyframes criticalFlash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
/* ✅ Mobile Responsive */
.grace-period-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: pulseWarning 2s infinite;
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.warning-icon {
  font-size: 2rem;
  animation: bounce 1s infinite;
  flex-shrink: 0;
}

.warning-text {
  flex: 1;
  min-width: 200px;
}

.warning-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.warning-message {
  font-size: 0.95rem;
  opacity: 0.9;
}

#gracePeriodCountdown {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin: 0 0.25rem;
  display: inline-block;
  min-width: 3.5rem;
  text-align: center;
}

.warning-actions {
  flex-shrink: 0;
}

.urgent-btn {
  background: #dc2626 !important;
  border: none;
  color: white !important;
  font-weight: 600;
  animation: urgentPulse 1.5s infinite;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.urgent-btn:hover {
  background: #b91c1c !important;
  transform: scale(1.05);
}
.urgent-btn:disabled {
  background: #6b7280 !important;
  animation: none;
  cursor: not-allowed;
  transform: none;
}

.grace-period-warning.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.grace-period-warning.critical {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  animation: pulseWarning 1s infinite;
}

.grace-period-warning.final {
  background: linear-gradient(135deg, #7c2d12, #991b1b);
  animation: criticalFlash 0.5s infinite;
}

@media (max-width: 768px) {
  .warning-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .warning-icon {
    font-size: 1.5rem;
  }
  .urgent-btn {
    width: 100%;
    font-size: 0.9rem;
  }
  #gracePeriodCountdown {
    font-size: 1.2rem;
    padding: 0.5rem;
  }
}

/*# sourceMappingURL=viewNote.css.map */
