/* ==========================================================================
   MAHA POLICE BHARTI - ACCOUNT DELETION UI STYLES
   Mobile-First Responsive Stylesheet
   ========================================================================== */

:root {
  --color-primary: #0f172a; /* Navy Blue */
  --color-primary-light: #1e293b;
  --color-accent: #2563eb; /* Royal Blue */
  --color-accent-hover: #1d4ed8;
  --color-danger: #ef4444; /* Red warning */
  --color-success: #10b981; /* Green success */
  --color-gold: #d97706; /* Gold/Amber */
  --color-border: #e2e8f0;
  --color-bg-light: #f8fafc;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 1) 0%, rgba(219, 234, 254, 0.4) 90%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-primary);
  line-height: 1.5;
}

/* Header Navbar */
.deletion-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.header-titles h1 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.header-titles p {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gold);
  text-transform: uppercase;
}

/* Page Content Container */
.page-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.deletion-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Step screens logic */
.step-screen {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.step-screen.active {
  display: block;
}

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

/* Card titles and desc */
.card-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.75rem;
  line-height: 1.45;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 38px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
}

.password-toggle-btn:hover {
  color: var(--color-primary);
}

/* Primary Button Styles */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* OTP Boxes Container */
.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.otp-box {
  width: 48px;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  transition: all 0.2s ease;
}

.otp-box:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Resend section */
.resend-box {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.825rem;
  color: #64748b;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.resend-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  font-weight: 500;
}

/* Account Info Card Box */
.info-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.825rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #64748b;
  font-weight: 500;
}

.info-val {
  font-weight: 700;
  color: var(--color-primary);
}

/* Warning alert box */
.warning-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.75rem;
}

.warning-icon {
  color: var(--color-danger);
  font-size: 1.3rem;
  margin-top: 2px;
}

.warning-text h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-danger);
  margin-bottom: 0.25rem;
}

.warning-text p {
  font-size: 0.8rem;
  color: #b91c1c;
  line-height: 1.45;
}

/* Dialog confirm backdrop */
.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dialog-backdrop.active {
  display: flex;
}

.dialog-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.dialog-icon {
  width: 54px;
  height: 54px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
  font-size: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.dialog-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.dialog-box p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-secondary {
  flex: 1;
  padding: 0.75rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-primary-light);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  flex: 1;
  padding: 0.75rem;
  background: var(--color-danger);
  border: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Success Card details */
.success-checkmark {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Footer Section */
.deletion-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.75rem;
  color: #64748b;
}

.deletion-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}

/* Alert notifications box inside the card */
.alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.alert-box.active {
  display: flex;
}

/* Loader indicator animation */
.loader-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-primary.loading .loader-spinner {
  display: inline-block;
}

.btn-primary.loading span {
  display: none;
}

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

@media (max-width: 420px) {
  .page-wrapper {
    padding: 0.75rem;
  }
  .deletion-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .otp-container {
    gap: 0.25rem;
    margin: 1.25rem 0;
  }
  .otp-box {
    width: 38px;
    height: 44px;
    font-size: 1.15rem;
    border-radius: 8px;
  }
}

