/* flaskapp/static/css/account.css
   Styling for Account Settings / Profile / Company pages
   Reuses the bunker palette from main.css
*/

.account-page {
  background-color: var(--frosted-mint) !important;
}

/* Cards: soft frosted panels instead of stark white */
.account-page .card {
  border-radius: 0.75rem;
  border: 1px solid rgba(47, 72, 88, 0.16);
  background: linear-gradient(
    135deg,
    rgba(218, 247, 220, 0.9),   /* frosted-mint */
    rgba(134, 187, 216, 0.06)   /* sky-reflection tint */
  );
  box-shadow: 0 0.35rem 1.1rem rgba(15, 32, 45, 0.06);
  color: var(--charcoal-blue);
}

.account-page .card.shadow-sm {
  box-shadow: 0 0.4rem 1.25rem rgba(15, 32, 45, 0.08) !important;
}

.account-page .card .card-body {
  color: var(--charcoal-blue);
}

/* Form labels consistent with register/docs */
.account-page .card .form-label {
  color: var(--charcoal-blue);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Profile summary card – slightly more blue, still soft */
.account-summary-card {
  background: linear-gradient(
    135deg,
    rgba(134, 187, 216, 0.35),  /* sky-reflection */
    rgba(218, 247, 220, 0.98)   /* frosted-mint */
  );
}

/* Quick actions + documents summary */
.account-quick-card,
.account-docs-summary-card {
  background: linear-gradient(
    135deg,
    rgba(218, 247, 220, 0.96),
    rgba(134, 187, 216, 0.1)
  );
}

/* Badges in account area */
.account-page .badge.bg-success {
  background-color: var(--light-green) !important;
  color: var(--charcoal-blue) !important;
}

.account-page .badge.bg-secondary {
  background-color: rgba(47, 72, 88, 0.12) !important;
  color: var(--charcoal-blue) !important;
}

.account-page .badge.bg-info {
  background-color: var(--sky-reflection) !important;
  color: var(--charcoal-blue) !important;
}

/* Primary buttons: softer sky tone by default */
.account-page .btn-primary {
  --bs-btn-color: var(--charcoal-blue);
  --bs-btn-bg: var(--sky-reflection);
  --bs-btn-border-color: var(--baltic-blue);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--baltic-blue);
  --bs-btn-hover-border-color: var(--baltic-blue);
  --bs-btn-active-bg: #28507a;
  --bs-btn-active-border-color: #28507a;

  border-radius: 999px;
  padding-inline: 1.25rem;
}

/* Outline buttons – keep contrast, round them a bit */
.account-page .btn-outline-secondary {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

/* File inputs on all account pages – match docs/register, no black button */
.account-page .form-control[type="file"] {
  font-size: 0.9rem;
  border-color: rgba(47, 72, 88, 0.25);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  color: var(--charcoal-blue);
}

/* Modern browsers */
.account-page .form-control[type="file"]::file-selector-button {
  background-color: var(--charcoal-blue);
  color: #ffffff;
  border: 1px solid rgba(15, 32, 45, 0.9);
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.25rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

/* WebKit fallback */
.account-page .form-control[type="file"]::-webkit-file-upload-button {
  background-color: var(--charcoal-blue);
  color: #ffffff;
  border: 1px solid rgba(15, 32, 45, 0.9);
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.25rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.account-page .form-control[type="file"]::file-selector-button:hover,
.account-page .form-control[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.06);
}

/* Profile -> Company Documents list items */
.account-doc-list .list-group-item {
  background-color: rgba(218, 247, 220, 0.9); /* frosted-mint tint */
  color: var(--charcoal-blue);
  border-color: rgba(47, 72, 88, 0.18);
}

/* Helper text */
.account-page .form-text {
  font-size: 0.8rem;
  color: rgba(47, 72, 88, 0.8);
}

/* -------------------------------------------------------- */
/* FIX: better contrast for read-only / disabled fields     */
/* (Account Type display, etc.)                            */
/* -------------------------------------------------------- */

.account-page .form-control[disabled],
.account-page .form-control:disabled,
.account-page .form-control[readonly] {
  background-color: #ffffff; /* same as normal inputs */
  color: var(--charcoal-blue);
  border-color: rgba(47, 72, 88, 0.25);
  opacity: 1; /* override Bootstrap's 0.65 */
}

/* -------------------------------------------------------- */
/* FIX: date field + calendar icon                          */
/* -------------------------------------------------------- */

.account-page input[type="date"].form-control {
  background-color: #ffffff;
  color: var(--charcoal-blue);
}

/* tweak WebKit calendar icon to be darker and clearer */
.account-page input[type="date"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(18%) sepia(12%) saturate(800%) hue-rotate(162deg)
          brightness(90%) contrast(90%);
  opacity: 0.9;
}

/* ensure the text part of the date stays readable */
.account-page input[type="date"].form-control::-webkit-datetime-edit {
  color: var(--charcoal-blue);
}

/* -------------------------------------------------------- */
/* Buttons: rectangular + Baltic/Charcoal palette            */
/* -------------------------------------------------------- */

.account-page .btn {
  border-radius: 0.25rem;
}

.account-page .btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--baltic-blue);
  --bs-btn-border-color: var(--baltic-blue);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--charcoal-blue);
  --bs-btn-hover-border-color: var(--charcoal-blue);
  --bs-btn-active-bg: #243846;
  --bs-btn-active-border-color: #243846;

  border-radius: 0.25rem;
  padding-inline: 1.1rem;
}

.account-page .btn-outline-secondary {
  --bs-btn-color: var(--charcoal-blue);
  --bs-btn-border-color: var(--charcoal-blue);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--charcoal-blue);
  --bs-btn-hover-border-color: var(--charcoal-blue);
  --bs-btn-active-bg: #243846;
  --bs-btn-active-border-color: #243846;

  border-radius: 0.25rem;
  padding-inline: 1.1rem;
}

/* -------------------------------------------------------- */
/* File inputs: make the native "Choose File" Baltic Blue    */
/* -------------------------------------------------------- */

.account-page .form-control[type="file"]::file-selector-button {
  background-color: var(--baltic-blue);
  color: #ffffff;
  border: 1px solid var(--baltic-blue);
  border-radius: 0.25rem 0 0 0.25rem;
  padding: 0.25rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

/* WebKit fallback */
.account-page .form-control[type="file"]::-webkit-file-upload-button {
  background-color: var(--baltic-blue);
  color: #ffffff;
  border: 1px solid var(--baltic-blue);
  border-radius: 0.25rem 0 0 0.25rem;
  padding: 0.25rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.account-page .form-control[type="file"]::file-selector-button:hover,
.account-page .form-control[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.06);
}

/* -------------------------------------------------------- */
/* Account Type badge: styled variants + Bootstrap icons     */
/* -------------------------------------------------------- */

.account-page .acct-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(47, 72, 88, 0.18);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal-blue);
  background-color: rgba(134, 187, 216, 0.18); /* sky-reflection tint */
}

.account-page .acct-type-badge--plus {
  background-color: rgba(134, 187, 216, 0.24);
  border-color: rgba(51, 102, 153, 0.28);
}

.account-page .acct-type-badge--enterprise-pro {
  background-color: rgba(218, 247, 220, 0.72); /* frosted-mint tint */
  border-color: rgba(47, 72, 88, 0.22);
}

.account-page .acct-type-badge--demo {
  background-color: rgba(47, 72, 88, 0.12);
  border-color: rgba(47, 72, 88, 0.18);
}


/* Billing: darker table headers (match palette) */
.account-page .billing-table thead th {
  color: var(--charcoal-blue) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.account-page .billing-table thead {
  border-bottom: 1px solid rgba(47, 72, 88, 0.22);
}

.account-page .billing-table thead th.text-end {
  text-align: end;
}

/* Billing: darker Paid/Due values */
.account-page .billing-table td.billing-amount {
  color: var(--charcoal-blue) !important;
  font-weight: 600;
}
