:root {
  --bg-color: #0f172a;
  --panel-bg: #1e293b;
  --panel-border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --error-color: #ef4444;
  --success-color: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}



/* Main Container */
.container {
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  margin: 1rem;
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

header {
  margin-bottom: 2.5rem;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--panel-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--bg-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.05);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none; /* Let clicks pass through to drop-zone */
}

.upload-icon {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.drop-zone:hover .upload-icon {
  transform: translateY(-5px);
}

.drop-text {
  font-weight: 500;
  font-size: 1.1rem;
}

.drop-subtext {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  pointer-events: auto; /* ensure buttons in dropzone are clickable */
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-color);
  color: white;
  padding: 0.75rem;
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: var(--panel-border);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--panel-border);
  width: 100%;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  width: auto;
  border-radius: 20px;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #5865F2; /* Discord Color */
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(88, 101, 242, 0.4);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 300px;
}

.discord-btn:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(88, 101, 242, 0.6);
}

.discord-icon {
  width: 24px;
  height: 24px;
}

.login-section {
  text-align: center;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.login-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.upload-btn {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1rem;
  padding: 1rem;
}

/* File Info */
.file-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  word-break: break-all;
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--bg-color);
  border-radius: 8px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--panel-border);
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--panel-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: block;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.text-center {
  text-align: center;
}

/* Progress Bar */
.progress-container {
  margin-top: 1.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-color);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Result Section */
.result-section {
  animation: fadeIn 0.5s ease;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.url-box {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  margin-bottom: 1.5rem;
  position: relative;
}

.url-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
}

input[type="text"] {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent-color);
}

.copy-feedback {
  position: absolute;
  bottom: -20px;
  right: 1.5rem;
  font-size: 0.8rem;
  color: var(--success-color);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

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

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