/* protect-pdf.css – clean, professional, fully responsive */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 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;
  margin: 0;
}

.protect-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 35px -8px rgba(0,20,40,0.15), 0 5px 12px -4px rgba(0,0,0,0.05);
  padding: 2rem 2rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.card-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0a2a44;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid #e6edf4;
  padding-bottom: 0.75rem;
}

.trust-badge {
  background: #ecf7f0;
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: #0f5c3e;
  border: 1px solid #b8e0c2;
  margin: 0.25rem 0 1.5rem 0;
  font-weight: 500;
  display: inline-block;
  width: fit-content;
}

/* ===== DROP ZONE ===== */
.upload-section {
  margin-bottom: 1.8rem;
}

.drop-zone {
  background: #f8fcff;
  border: 2px dashed #b8ccdb;
  border-radius: 20px;
  padding: 1.6rem 1rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.drop-zone:hover {
  background: #f0f7fe;
  border-color: #4f8bb3;
}

.drop-zone.dragover {
  background: #e1f0fa;
  border-color: #1e5f86;
  border-style: solid;
  transform: scale(1.01);
}

.drop-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.drop-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1f3b4f;
  margin-bottom: 0.5rem;
}

.file-name-display {
  font-size: 0.95rem;
  background: #e9eff5;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  color: #0a3142;
  font-weight: 500;
  max-width: 100%;
  word-break: break-word;
  display: inline-block;
  margin-top: 0.3rem;
}

/* ===== INPUT FIELDS ===== */
.password-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.input-field {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #3f5b6e;
}

.input-field input {
  padding: 0.8rem 1.2rem;
  border: 1px solid #cbd6e0;
  border-radius: 40px;
  font-size: 1rem;
  background: white;
  transition: border 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.input-field input:focus {
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

/* ===== PERMISSIONS ===== */
.permissions {
  border: none;
  margin-bottom: 2rem;
  padding: 0;
}

.permissions legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a4a5e;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  background: #f3f7fa;
  padding: 1.2rem 1.5rem;
  border-radius: 28px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #1f3e53;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #1f7f5c;
  border-radius: 6px;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  margin-bottom: 1.4rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.12s;
  cursor: pointer;
  border: 1px solid transparent;
  flex: 0 1 auto;
  white-space: nowrap;
}

.btn-primary {
  background: #0a3147;
  color: white;
  box-shadow: 0 6px 14px rgba(10,49,71,0.2);
}
.btn-primary:hover {
  background: #154a63;
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(10,49,71,0.25);
}

.btn-success {
  background: #1b7e4b;
  color: white;
  box-shadow: 0 6px 14px rgba(27,126,75,0.2);
}
.btn-success:hover:not(:disabled) {
  background: #239f5c;
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(27,126,75,0.25);
}
.btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #5f7d95;
  color: #2a4a5e;
}
.btn-outline:hover {
  background: #e3ecf2;
  border-color: #2a4a5e;
}

/* ===== MESSAGES ===== */
.message {
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
  word-break: break-word;
}
.error-message {
  background: #ffe8e6;
  color: #b23b2c;
  border-left: 6px solid #c73f2c;
}
.status-message {
  background: #e3f2fd;
  color: #085e7a;
  border-left: 6px solid #1f8cb4;
}

.footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #4d687a;
  font-weight: 500;
}

/* responsive adjustments */
@media (max-width: 550px) {
  .card { padding: 1.5rem; }
  .action-bar { flex-direction: column; }
  .btn { width: 100%; }
  .checkbox-grid { flex-direction: column; gap: 0.7rem; }
  .drop-zone { padding: 1.2rem 0.8rem; }
}