* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #070b14;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.app-container {
  width: 100%;
  max-width: 580px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* हेडर */
.app-header {
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.app-header h1 {
  font-size: 20px;
  color: #f8fafc;
  margin-bottom: 4px;
}

.app-header p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* मोड स्विच बटन */
.mode-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-btn {
  background: #131d33;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.mode-btn .icon {
  font-size: 16px;
}

.mode-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

/* अपलोड कार्ड */
.upload-card {
  border: 2px dashed #334155;
  background: #090e1a;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-card:hover, .upload-card:active {
  border-color: #38bdf8;
}

.upload-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.upload-card h3 {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.upload-subtext {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}

.limit-tag {
  display: inline-block;
  font-size: 10px;
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* चुनी गई फ़ाइल का विवरण */
.file-card {
  background: #131d33;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 22px;
}

.file-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.file-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 11px;
  color: #94a3b8;
}

/* प्रोग्रेस बार */
.progress-section {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 6px;
  transition: width 0.2s ease;
}

.stats-counter {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  text-align: right;
  font-weight: 600;
}

/* एक्शन बटन */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-download {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-download:active {
  background: #15803d;
}

.btn-reset {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn-reset:active {
  background: #1e293b;
}

/* फूटर */
.app-footer {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 12px;
}

.app-footer span {
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
  display: block;
}

/* मोबाइल रिस्पॉन्सिव अनुकूलन */
@media (max-width: 480px) {
  .app-container {
    padding: 16px;
  }
  .app-header h1 {
    font-size: 18px;
  }
}