/**
 * Vault v2.0 - Sophisticated Light Theme
 * Simple Typography with Distinctive Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  /* Sophisticated Light Theme Palette */
  --bg-deep: #fafbfc;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-input: #f1f3f5;
  --bg-hover: #e9ecef;
  --bg-overlay: rgba(255, 255, 255, 0.95);

  /* Sophisticated Accent Colors */
  --accent-primary: #2d3748;
  --accent-secondary: #4a5568;
  --accent-bright: #121c31;
  --accent-gradient: linear-gradient(135deg, #2d3748 0%, #121c31 100%);
  --accent-glow: rgba(18, 28, 49, 0.15);

  /* Distinctive Accents */
  --emerald: #10b981;
  --emerald-dark: #059669;
  --crimson: #ef4444;
  --crimson-dark: #dc2626;
  --amber: #f59e0b;
  --steel: #64748b;
  --steel-light: #94a3b8;

  /* Text Colors */
  --text-primary: #121c31;
  --text-secondary: #2d3748;
  --text-muted: #718096;
  --text-accent: #121c31;

  /* Borders */
  --border-subtle: rgba(18, 28, 49, 0.08);
  --border-visible: rgba(18, 28, 49, 0.15);
  --border-strong: rgba(18, 28, 49, 0.25);

  /* Shadows - Subtle for Light Theme */
  --shadow-glow: 0 0 30px rgba(18, 28, 49, 0.08);
  --shadow-accent: 0 8px 24px rgba(18, 28, 49, 0.12);
  --shadow-card: 0 4px 16px rgba(18, 28, 49, 0.08);
  --shadow-elevated: 0 12px 32px rgba(18, 28, 49, 0.12);
  --shadow-hover: 0 8px 24px rgba(18, 28, 49, 0.15);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Typography - Simple but Distinctive */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Light Background with Subtle Patterns */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(18, 28, 49, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 35s ease-in-out infinite;
}

/* Subtle Geometric Pattern Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(18, 28, 49, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 28, 49, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 25s linear infinite;
}

@keyframes backgroundShift {
  0%, 100% { 
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05) rotate(2deg);
  }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Light Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-visible);
  box-shadow: var(--shadow-elevated);
}

/* Screens */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* Auth Screens - New Modern Design */
.auth-screen {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 3rem 3.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  border: 2px solid var(--border-subtle);
  animation: slideUpStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.8;
}

@keyframes slideUpStagger {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-logo {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInStagger 1s ease-out 0.2s both;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border-visible);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-accent);
  animation: floatSubtle 4s ease-in-out infinite;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
}

@keyframes floatSubtle {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    box-shadow: var(--shadow-accent);
  }
  50% { 
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 12px 32px rgba(18, 28, 49, 0.15);
  }
}

@keyframes fadeInStagger {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  animation: fadeInStagger 1s ease-out 0.3s both;
}

.auth-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  animation: fadeInStagger 1s ease-out 0.4s both;
}

.auth-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-visible);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeInStagger 1s ease-out 0.5s both;
}

.auth-warning strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Form Elements - Compact & Light */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-body);
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-card);
  background: var(--bg-primary);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Password Strength - Smaller */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: all 0.4s ease;
}

.strength-fill.weak {
  background: linear-gradient(90deg, var(--crimson), var(--crimson-dark));
  width: 33%;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}

.strength-fill.medium {
  background: linear-gradient(90deg, var(--amber), #d97706);
  width: 66%;
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.4);
}

.strength-fill.strong {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-dark));
  width: 100%;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.4);
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Premium Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: #0f182c;
  color: white;
  box-shadow: var(--shadow-accent);
  border: 1px solid #0f182c;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(15, 24, 44, 0.3);
  filter: brightness(1.1);
  background: #15203a;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--crimson);
  color: white;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  border: 1px solid var(--crimson);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(230, 57, 70, 0.6);
  filter: brightness(1.1);
}

.btn-success {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* Light Header */
.app-header {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(18, 28, 49, 0.08);
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.2;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-small {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.logo-small:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
  transform: rotate(5deg);
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Dashboard */
.dashboard-screen {
  flex-direction: column;
}

.dashboard-container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  margin-bottom: 2rem;
  animation: fadeInStagger 0.8s ease-out 0.2s both;
}

.dashboard-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.dashboard-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: fadeInStagger 0.8s ease-out 0.4s both;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
}

.search-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-card);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.search-box:focus-within .search-icon {
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Entry Cards - Light Theme */
.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.entry-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out both;
}

.entry-card:nth-child(1) { animation-delay: 0.1s; }
.entry-card:nth-child(2) { animation-delay: 0.2s; }
.entry-card:nth-child(3) { animation-delay: 0.3s; }
.entry-card:nth-child(4) { animation-delay: 0.4s; }
.entry-card:nth-child(5) { animation-delay: 0.5s; }
.entry-card:nth-child(n+6) { animation-delay: 0.6s; }

.entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.entry-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--border-visible);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-secondary);
}

.entry-card:hover::before {
  transform: scaleX(1);
}

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

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.entry-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
  flex: 1;
  letter-spacing: -0.2px;
}

.entry-actions {
  display: flex;
  gap: 0.4rem;
}

.entry-username {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.entry-username:hover {
  border-color: var(--border-visible);
  background: var(--bg-hover);
}

.username-label {
  font-size: 1.1rem;
  opacity: 0.6;
  color: var(--text-muted);
}

.username-text {
  color: var(--text-secondary);
  font-weight: 500;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.entry-password {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 1px;
}

.password-masked {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 2px;
}

.entry-link {
  color: var(--emerald);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  font-weight: 500;
}

.entry-link:hover {
  color: var(--emerald-dark);
  transform: translateX(4px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state-icon {
  font-size: 6rem;
  margin-bottom: 2rem;
  opacity: 0.15;
  filter: grayscale(1);
  animation: floatSubtle 4s ease-in-out infinite;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.empty-state-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Modal - Modern Design */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeInDark 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDark {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(16px);
  }
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  animation: modalSlideInDark 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.7;
}

@keyframes modalSlideInDark {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.92) rotateX(5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.modal-close {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-card);
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Alerts - Light Theme */
.alert {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  min-width: 320px;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  z-index: 2000;
  animation: slideInRightDark 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-elevated);
  border: 1px solid;
}

@keyframes slideInRightDark {
  from {
    opacity: 0;
    transform: translateX(120px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.alert-error {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--crimson);
}

.alert-success {
  background: rgba(0, 212, 170, 0.15);
  border-color: rgba(0, 212, 170, 0.4);
  color: var(--emerald);
}

.alert-info {
  background: rgba(18, 28, 49, 0.08);
  border-color: rgba(18, 28, 49, 0.25);
  color: var(--text-secondary);
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spinAccent 0.8s linear infinite;
}

@keyframes spinAccent {
  to { 
    transform: rotate(360deg);
    border-top-color: var(--accent-secondary);
  }
}

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

/* Utilities */
.hidden {
  display: none !important;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Light Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 2rem;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-container {
    padding: 1rem;
  }

  .entries-grid {
    grid-template-columns: 1fr;
  }

  .alert {
    right: 1rem;
    left: 1rem;
    min-width: auto;
    font-size: 0.8rem;
    padding: 0.875rem 1rem;
  }

  .modal {
    padding: 1.5rem 1.25rem;
  }

  .dashboard-controls {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .app-header {
    padding: 0.875rem 1rem;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }
}

/* Print Prevention */
@media print {
  body {
    display: none;
  }
}
