/* page-numbers.css — clean, professional, fully responsive */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, 'Segoe UI', Roboto, -apple-system, Helvetica, sans-serif;
}

body {
  background: linear-gradient(145deg, #f6f9fc 0%, #eef2f5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.page-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* main glass card */
.glass-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 36px;
  box-shadow: 0 20px 35px -8px rgba(0,20,40,0.15), 0 8px 12px -6px rgba(0,0,0,0.02);
  padding: 2.2rem 2rem;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}

.title-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0a2a44;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.trust-badge {
  background: #ebf8ff;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  color: #1e4a6b;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b8e2f2;
}

/* upload area */
.upload-area {
  background: white;
  border: 2px dashed #bdd3e6;
  border-radius: 24px;
  padding: 2.2rem 1rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

.upload-area:hover {
  background: #f5faff;
  border-color: #3e7eb0;
}

.upload-area.dragover {
  background: #e1f0fa;
  border-color: #1e5f9e;
  border-style: solid;
}

.drop-content i {
  font-size: 3.2rem;
  color: #2c7da0;
  margin-bottom: 0.6rem;
}

.drop-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1e3b5c;
  margin-bottom: 0.25rem;
}

.fake-link {
  color: #1f78b4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.file-hint {
  font-size: 0.8rem;
  color: #62748b;
  background: #ecf3f9;
  padding: 0.2rem 0.9rem;
  border-radius: 30px;
}

/* file meta row */
.file-meta {
  display: flex;
  justify-content: space-between;
  background: #f0f6fc;
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  margin-bottom: 1.8rem;
  font-weight: 500;
  color: #1c3c56;
  border: 1px solid #d7e2eb;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: #2a6f97;
  width: 1.2rem;
  text-align: center;
}

/* settings panel */
.settings-panel {
  background: #ffffffd9;
  border-radius: 28px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.settings-panel h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #113946;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dde7ed;
  padding-bottom: 0.75rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem 1.8rem;
}

.setting-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.setting-cell label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c4e6b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-select, .modern-input {
  background: white;
  border: 1px solid #cbd8e4;
  border-radius: 40px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  color: #142c3c;
  transition: 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.modern-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b6e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1rem;
}

.modern-input:focus, .modern-select:focus {
  border-color: #1f78b4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,120,180,0.12);
}

.color-picker {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd8e4;
  border-radius: 40px;
  padding: 0.2rem 0.5rem;
  background: white;
  cursor: pointer;
}

/* summary card */
.summary-card {
  background: #eaf0f6;
  border-radius: 20px;
  padding: 1.2rem 1.8rem;
  margin-bottom: 1.8rem;
  border-left: 6px solid #3687b9;
}

.summary-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #18455c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-content {
  font-size: 1.05rem;
  color: #0b2a3b;
  background: rgba(255,255,255,0.6);
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

/* action buttons */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.8rem;
}

.btn {
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  flex: 0 1 auto;
}

.btn.primary {
  background: #0f4c5c;
  color: white;
  box-shadow: 0 6px 14px rgba(13, 79, 96, 0.25);
}
.btn.primary:hover:enabled {
  background: #1d6375;
  transform: translateY(-2px);
}
.btn.success {
  background: #1e7920;
  color: white;
}
.btn.success:hover:enabled {
  background: #2a8f2c;
  transform: translateY(-2px);
}
.btn.secondary {
  background: #e7edf2;
  color: #1f485b;
  border-color: #b8ccd9;
}
.btn.secondary:hover {
  background: #dae3ea;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-message {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 60px;
  background: #fff9e5;
  color: #5a5100;
  min-height: 2.6rem;
}

/* responsive */
@media (max-width: 650px) {
  .glass-card { padding: 1.5rem; }
  h1 { font-size: 1.5rem; }
  .title-section { flex-direction: column; gap: 10px; }
  .action-bar .btn { width: 100%; }
  .file-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { font-size: 0.9rem; padding: 0.75rem 1.2rem; }
}