/* ═══════════════════════════════════════════════════════════
   ProduzaLink — Premium Web Design
   ═══════════════════════════════════════════════════════════ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1c 100%);
  --bg-card: rgba(30, 30, 32, 0.7);
  --bg-secondary: rgba(44, 44, 46, 0.8);
  --bg-tertiary: rgba(58, 58, 60, 0.9);
  --text-primary: #ffffff;
  --text-secondary: #a1a1a6;
  --text-tertiary: #636366;
  --border: rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.2);
  --accent: #0a84ff;
  --accent-hover: #007aff;
  --accent-soft: rgba(10,132,255,0.15);
  --success: #34c759;
  --success-soft: rgba(52,199,89,0.15);
  --error: #ff3b30;
  --error-soft: rgba(255,59,48,0.15);
  --radius: 12px;
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ═══ HEADER ═══ */
.native-header {
  text-align: center;
  margin-bottom: 30px;
}
.app-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, #a1a1a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ═══ MAIN CARD ═══ */
.compact-main {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ═══ TABS ═══ */
.tab-bar-native {
  display: flex;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab-native {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-native:hover:not(.active) {
  color: var(--text-primary);
}
.tab-native.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ UPLOAD ═══ */
.drop-zone-native {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 48px 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.drop-zone-native:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop-icon {
  color: var(--text-secondary);
  margin-bottom: 12px;
  width: 32px;
  height: 32px;
}
.drop-zone-native:hover .drop-icon {
  color: var(--accent);
}
.drop-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.drop-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 20px; }
.native-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.native-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
}
.native-input:focus { border-color: var(--accent); }
.native-input::placeholder { color: var(--text-tertiary); }

.input-group-native {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  transition: border-color var(--transition);
}
.input-group-native:focus-within { border-color: var(--accent); }
.prefix-native {
  font-size: 15px;
  color: var(--text-secondary);
}
.input-group-native .native-input {
  border: none;
  background: transparent;
  padding: 12px 0 12px 4px;
}

/* ═══ BUTTONS ═══ */
.btn-primary-large {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
}
.btn-primary-large:hover { background: var(--accent-hover); }
.btn-primary-large:active { transform: scale(0.98); }

.btn-primary-small {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-secondary-small {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary-small:hover { background: rgba(255,255,255,0.1); }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 24px; }

/* ═══ RESULTS ═══ */
.result-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--success-soft);
}
.result-box .native-input {
  font-family: monospace;
  font-size: 14px;
  color: var(--success);
  border-color: var(--success-soft);
  background: rgba(52,199,89,0.05);
}

/* ═══ HISTORY ═══ */
.history-list-native {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.history-list-native::-webkit-scrollbar { width: 6px; }
.history-list-native::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.history-empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 40px 20px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.history-item:hover { border-color: var(--border-hover); background: rgba(0,0,0,0.4); }
.history-info { flex: 1; overflow: hidden; }
.history-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.history-actions { display: flex; gap: 8px; }
.history-btn {
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; padding: 6px; border-radius: 6px; transition: all var(--transition);
}
.history-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.history-btn.delete:hover { background: var(--error-soft); color: var(--error); }

/* ═══ PROGRESS ═══ */
.progress-container { padding: 30px 0; text-align: center; }
.progress-bar-bg {
  height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px;
  overflow: hidden; margin-bottom: 12px;
}
.progress-bar-fill {
  height: 100%; width: 0%; background: var(--accent); transition: width 0.2s;
}
.progress-text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ═══ APP FOOTER (Web version) ═══ */
.app-footer {
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.footer-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.footer-right { display: flex; align-items: center; gap: 20px; }
.close-btn { display: none; /* Not needed on web */ }

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(52,199,89,0.3);
  z-index: 200;
  transition: opacity 0.3s, transform 0.3s;
}
.hidden { display: none !important; }
