:root {
  --font-main: "Prompt", sans-serif;
  --font-header: "Outfit", sans-serif;
  
  /* Color Palette - Matching Aofaap Nexus Metallic & Cyan Theme */
  --color-bg: #030712;
  --color-bg-gradient: radial-gradient(circle at top, #0f1e36, #030712);
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-primary: #0056cc;
  --color-secondary: #00bfff;
  --color-accent: #00d2ff;
  --color-border-glow: rgba(0, 191, 255, 0.3);
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(0, 191, 255, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  background: var(--color-bg-gradient);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 25s infinite ease-in-out;
  border-radius: 50%;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: var(--color-primary);
  animation-delay: 0s;
  opacity: 0.25;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--color-secondary);
  animation-delay: -6s;
  opacity: 0.2;
}

.blob-3 {
  top: 35%;
  left: 35%;
  width: 45vw;
  height: 45vw;
  background: rgba(0, 210, 255, 0.15);
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -60px) scale(1.05);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

/* Container & Layout */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  z-index: 1;
}

/* Header & Branding */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.app-logo {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.45));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-logo:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 0 25px rgba(0, 191, 255, 0.65));
}

.app-title {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #c2e9fb, #00bfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(0, 191, 255, 0.25);
}

.tagline {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto;
}

/* Main Card - Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(0, 210, 255, 0.4);
  border-radius: 28px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 40px 75px -20px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 191, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 191, 255, 0.4);
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed rgba(0, 191, 255, 0.35);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 1.75rem;
  position: relative;
  background: rgba(10, 18, 38, 0.5);
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--color-accent);
  background: rgba(0, 191, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.icon-container {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.drop-zone:hover .icon-container {
  color: var(--color-accent);
  transform: translateY(-4px) scale(1.05);
}

.drop-zone.has-file {
  border-color: var(--color-secondary);
  border-style: solid;
  background: rgba(0, 191, 255, 0.12);
}

.drop-zone h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.drop-zone p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* File Information Indicator */
.file-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.2rem;
  background: rgba(2, 6, 23, 0.6);
  border-radius: 12px;
  animation: fadeIn 0.4s ease;
  border: 1px solid rgba(0, 191, 255, 0.15);
}

.file-info.hidden {
  display: none !important;
}

.file-name {
  font-size: 0.9rem;
  color: #c084fc; /* subtle light purple to highlight the file name */
  color: var(--color-accent);
  font-weight: 500;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: scale(1.1);
}

/* Inputs styling */
.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type=password], input[type=text] {
  width: 100%;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 14px;
  padding: 0.85rem 3.5rem 0.85rem 1.1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

input[type=password]:focus, input[type=text]:focus {
  border-color: var(--color-secondary);
  box-shadow: 
    0 0 0 3px rgba(0, 191, 255, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(2, 6, 23, 0.85);
}

.toggle-btn {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  transition: color 0.2s, background-color 0.2s;
}

.toggle-btn:hover {
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* Action Button styling */
.action-btn {
  width: 100%;
  padding: 1.1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #00bfff);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0, 191, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 28px rgba(0, 191, 255, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.08);
}

.action-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 15px rgba(0, 191, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #1f2937;
  color: #4b5563;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Loader & Animations */
.loader {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.action-btn .loader.hidden,
.action-btn .btn-text.hidden {
  display: none;
}

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

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

/* Footer Section */
.footer {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* creator badge - military & professional themed */
.creator-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.85), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-left: 5px solid #00bfff;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.creator-badge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.04));
  transform: skew(-25deg) translate(50%);
}

.creator-badge:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(0, 191, 255, 0.2);
  border-color: rgba(0, 191, 255, 0.45);
}

.creator-content {
  text-align: left;
}

.creator-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.creator-name {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  background: linear-gradient(90deg, #ffffff, #c2e9fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creator-role {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 400;
  margin-top: 0.15rem;
}

.creator-insignia {
  color: #38bdf8;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive design */
@media (max-width: 600px) {
  .app-title {
    font-size: 1.8rem;
  }
  .app-logo {
    width: 110px;
  }
  .glass-card {
    padding: 1.75rem 1.25rem;
  }
  .container {
    padding: 1.5rem 1rem;
  }
  .mobile-break {
    display: block;
  }
  .creator-badge {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
}

@media (min-width: 601px) {
  .mobile-break {
    display: none;
  }
}

/* ── Toast Notifications ──────────────────────── */
.toast {
  position: relative;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: slideDown 0.3s ease;
  border: 1px solid transparent;
  line-height: 1.5;
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast.toast-success {
  background: rgba(0, 191, 255, 0.12);
  border-color: rgba(0, 191, 255, 0.35);
  color: #7dd3fc;
}

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

/* ── Password Strength Bar ────────────────────── */
.strength-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  height: 6px;
}

.strength-bar {
  height: 6px;
  border-radius: 99px;
  transition: width 0.35s ease, background 0.35s ease;
  background: #ef4444;
  flex-shrink: 0;
}

.strength-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── File size hint & file size badge ────────── */
.size-hint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.file-size {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1px 8px;
}
