
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #f4f7fc;
  color: #172033;
  min-height: 100vh;
}

.header {
  height: 70px;
  background: #101a31;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}

.logo {
  font-size: 23px;
  font-weight: 800;
  color: #65a5ff;
}

.online {
  font-size: 13px;
  color: #cbd5e1;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
}

.container {
  max-width: 650px;
  margin: 35px auto;
  padding: 15px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.hero p {
  color: #64748b;
  font-size: 14px;
}

.privacy {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.connection-card,
.transfer-card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 5px 30px #00000008;
}

.tabs {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.tab {
  flex: 1;
  border: none;
  padding: 13px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  background: transparent;
}

.tab.active {
  background: #2563eb;
  color: white;
}

.section-title {
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 21px;
  margin-bottom: 8px;
}

.section-title p {
  color: #64748b;
  font-size: 13px;
}

.drop-area {
  display: block;
  text-align: center;
  padding: 35px 15px;
  border: 2px dashed #93b4f5;
  background: #f8faff;
  border-radius: 14px;
  cursor: pointer;
}

.drop-area input {
  display: none;
}

.upload-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.drop-area h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.drop-area p {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 20px;
}

.primary-button {
  background: #2563eb;
  color: white;
  padding: 11px 20px;
  border-radius: 8px;
  display: inline-block;
  font-size: 13px;
}

.selected-files {
  margin-top: 15px;
  font-size: 13px;
  color: #475569;
}

.selected-file {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  gap: 10px;
  overflow-wrap: anywhere;
}

.main-button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border: none;
  border-radius: 9px;
  background: #2563eb;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.main-button:hover {
  background: #1d4ed8;
}

.main-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.room-info {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  background: #f8faff;
}

.room-code {
  font-size: 32px;
  letter-spacing: 5px;
  color: #2563eb;
  font-weight: bold;
  margin: 15px 0;
}

#qrCode {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}

#qrCode img,
#qrCode canvas {
  border: 10px solid white;
}

.room-info p {
  font-size: 13px;
  color: #64748b;
  margin: 10px;
}

.secondary-button {
  padding: 11px 18px;
  background: #e2eafe;
  color: #1d4ed8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.status {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
}

.code-input {
  width: 100%;
  padding: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  text-align: center;
  font-size: 23px;
  letter-spacing: 5px;
  outline: none;
}

.code-input:focus {
  border-color: #2563eb;
}

.incoming {
  background: #eff6ff;
  padding: 18px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
}

.incoming p {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
}

.transfer-card {
  margin-top: 25px;
}

.transfer-card h2 {
  margin-bottom: 20px;
  font-size: 19px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

#transferName {
  overflow-wrap: anywhere;
}

.progress-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #2563eb;
  transition: width 0.15s;
}

#transferStatus {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
}

.security {
  display: flex;
  gap: 15px;
  padding: 20px;
  margin-top: 25px;
  background: #eaf2ff;
  border-radius: 12px;
}

.security > div:first-child {
  font-size: 27px;
}

.security h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.security p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

footer {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 20px;
  line-height: 1.8;
}

.hidden {
  display: none !important;
}

@media(max-width:500px) {
  .header {
    padding: 0 18px;
  }

  .container {
    margin: 20px auto;
  }

  .hero h1 {
    font-size: 25px;
  }

  .connection-card,
  .transfer-card {
    padding: 18px;
  }
}
