/*  profile-settings.css
    Purpose        Styles the “Profile Settings” dashboard:
                     • dark-mode page shell & header
                     • user-info card (rows, inline editing, timezone <select>)
                     • primary / secondary / danger action buttons
                     • download-data section
                     • responsive tweaks
                     • confirmation / success / cancellation modals

    Load-order     After the global theme file and before any page-specific JS:
                     <link rel="stylesheet" href="css/profile-settings.css">

   
    Last updated   31 Jul 2025
*/


/* Base */
body.dark-mode {
  background-color: #1e1e1e;
  color: #ECF0F1;
  font-family: Arial, sans-serif;
/*  margin: 0;*/
  padding: 0;
}

/* Main container */
.profile-main {
  max-width: 700px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

/* Header */
.profile-header h1 {
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

/* Info card */
.profile-info-card {
  background: #2c3e50;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  padding: 30px;
  margin-bottom: 30px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  padding: 12px 0;
}

.info-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #ccc;
  flex: 1;
  text-align: left;
}

.value {
  flex: 2;
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.editable {
  cursor: text;
}

.edit-icon {
  color: #4EA1D3;
  margin-left: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.edit-icon:hover {
  color: #3a89b2;
}

.timezone-select {
  background: #1e1e1e;
  border: 1px solid #555;
  color: #ECF0F1;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 1rem;
}

/* Actions */
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn.primary {
  background-color: #4EA1D3;
  color: #fff;
}

.btn.primary:hover {
  background-color: #3a89b2;
  transform: translateY(-1px);
}

.btn.danger {
  background-color: #8f2934;
  color: #fff;
}

.btn.danger:hover {
  background-color: #7b222d;
  transform: translateY(-1px);
}

/* Download section */
.download-data {
  text-align: center;
  margin-bottom: 60px;
}

.download-data h2 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.btn.secondary {
  background-color: #555;
  color: #fff;
}

.btn.secondary:hover {
  background-color: #444;
}

.download-note {
  margin-top: 12px;
  color: #aaa;
  font-size: 0.9rem;
}

.download-note a {
  color: #4EA1D3;
  text-decoration: underline;
}

.download-note a:hover {
  color: #3a89b2;
}

/* Modals, responsive tweaks… (carry over from existing CSS) */
@media (max-width: 600px) {
  .profile-main { margin: 40px auto; }
  .btn { min-width: 100%; }
  .info-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

span#email.value.editable {
    margin-left: 10px !important;
}



/*===============================================
   Delete-Confirm Modal
===============================================*/
/*── DELETE-CONFIRM MODAL ───────────────────────────────────*/
#deleteConfirmModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2001;
}
#deleteConfirmModal.hidden {
  display: none;
}

#deleteConfirmModal .modal-content {
  position: relative;
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  width: 400px;
}

/* confirmation buttons container */
#deleteConfirmModal .confirmation-modal-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* confirm & cancel buttons */
#deleteConfirmModal .confirmation-modal-buttons .confirm-button,
#deleteConfirmModal .confirmation-modal-buttons .cancel-button {
  flex: 1;
  padding: 0.5rem 0;        /* smaller buttons */
  font-size: 1rem;          /* smaller text */
  background-color: #4EA1D3;
  color: #ffffff;
  border: none;
  border-radius: 4px;       /* rounded corners */
  cursor: pointer;
}

#deleteConfirmModal .confirmation-modal-buttons .confirm-button:hover,
#deleteConfirmModal .confirmation-modal-buttons .cancel-button:hover {
  background-color: #3a89b2;
}




/*===============================================
   Delete Success Modal
===============================================*/
/* DELETE-SUCCESS MODAL */
#deleteSuccessModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2001;
}
#deleteSuccessModal.hidden {
  display: none;
}

#deleteSuccessModal .modal-content {
  position: relative;
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  width: 400px;
}

#deleteSuccessModal .close-button {
  width: 70%;
  margin: 1rem 0 0;
  padding: 0.5rem 0;
  font-size: 1rem;
  background-color: #4EA1D3;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#deleteSuccessModal .close-button:hover {
  background-color: #3a89b2;
}

/*===============================================
   Cancel Confirmation Modal (Subscription Cancellation)
===============================================*/
#cancelConfirmModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2001;
}
#cancelConfirmModal.hidden {
  display: none;
}

#cancelConfirmModal .modal-content {
  position: relative;
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  width: 400px;
}

#cancelConfirmModal .confirmation-modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

#cancelConfirmModal .confirm-button,
#cancelConfirmModal .cancel-button {
  width: 48%;
  padding: 0.5rem 0;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#cancelConfirmModal .confirm-button {
  background-color: #FFBF00;
  color: #000;
}
#cancelConfirmModal .confirm-button:hover {
  background-color: #e6ac00;
}

#cancelConfirmModal .cancel-button {
  background-color: #4EA1D3;
  color: #fff;
}
#cancelConfirmModal .cancel-button:hover {
  background-color: #3a89b2;
}






#cancel-subscription-btn {
  background-color: #FFBF00;
}

#cancel-subscription-btn:hover {
  background-color: #e6ac00;
}



/*===============================================
   Subscription‑Cancelled Modal
===============================================*/
#cancelSuccessModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2001;
}
#cancelSuccessModal.hidden {
  display: none;
}

#cancelSuccessModal .modal-content {
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  width: 400px;
}

#cancelSuccessModal .confirmation-modal-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

#cancelSuccessModal .close-button {
  flex: 1;
  padding: 0.5rem 0;
  font-size: 1rem;
  background-color: #4EA1D3;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#cancelSuccessModal .close-button:hover {
  background-color: #3a89b2;
}
