/* ===============================
   AirClip – Vibrant SaaS Theme
   =============================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --bg-main: linear-gradient(135deg, #eef2ff, #f0fdfa);
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-soft: #e5e7eb;
  --radius: 14px;
}

/* ---------- Base ---------- */

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 40px 30px;
  background: var(--bg-main);
  color: var(--text-main);
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Auth Area ---------- */

#auth-area {
  margin: 20px 0 30px;
  display: flex;
  gap: 12px;
  align-items: center;
}

#userInfo {
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Buttons ---------- */

button {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(79,70,229,0.25);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(79,70,229,0.35);
}

#signupBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 18px rgba(34,197,94,0.25);
}

#signupBtn:hover {
  box-shadow: 0 12px 26px rgba(34,197,94,0.35);
}

#logoutBtn {
  background: #ef4444;
  box-shadow: none;
}

#logoutBtn:hover {
  background: #dc2626;
}

/* ---------- Inputs ---------- */

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

textarea {
  height: 220px;
  margin-top: 10px;
  resize: vertical;
}

/* ---------- App Card ---------- */

#app {
  margin-top: 30px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}

/* ---------- Status ---------- */

#status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- File Area ---------- */

#file-area {
  margin-top: 10px;
}

#fileList {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s;
}

.file-item:hover {
  background: #eef2ff;
}

/* Thumbnails */

.file-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #334155;
  overflow: hidden;
}

.file-thumb-image,
.file-thumb-video {
  object-fit: cover;
}

/* File name */

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.file-name:hover {
  text-decoration: underline;
}

/* ---------- How-To Section ---------- */

#howto-container {
  margin-top: 50px;
}

.step {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
  transition: transform 0.2s;
}

.step:hover {
  transform: translateY(-3px);
}

/* ---------- Contact Section ---------- */

.contact-section {
  margin-top: 70px;
  text-align: center;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(15,23,42,0.08);
  max-width: 380px;
  margin: 30px auto;
}

.contact-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error { background: #dc2626; }
.toast.success { background: #16a34a; }

.hidden {
  display: none;
}
