/* UBS E-Banking — Login & Personal Dashboard (LK) Stylesheet */

.eb-body {
  background-color: #F6F5F2;
  color: #1C1C1C;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top E-Banking Header */
.eb-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E4E2DC;
  position: sticky;
  top: 0;
  z-index: 90;
}

.eb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 1rem;
}

.eb-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eb-brand-title {
  font-size: 0.9375rem;
  color: #4A4A4A;
  font-weight: 400;
  border-left: 1px solid #DCD9D0;
  padding-left: 0.85rem;
}

.eb-utility-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.eb-util-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid transparent;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  color: #333333;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.eb-util-btn:hover {
  background-color: #F5F4F0;
  color: #1C1C1C;
}

.eb-util-label {
  display: none;
}

@media (min-width: 768px) {
  .eb-util-label {
    display: inline;
  }
}

.eb-badge-dot {
  position: absolute;
  top: 6px;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #E60000;
  border: 1.5px solid #FFFFFF;
}

/* Secondary Tab Navigation Row */
.eb-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #EFECE6;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.eb-nav-row::-webkit-scrollbar {
  display: none;
}

.eb-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 0.78rem 0.72rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333333;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}

.eb-tab-btn:first-child {
  padding-left: 0;
}

.eb-tab-btn:hover {
  color: #E60000;
}

.eb-tab-btn.is-active {
  color: #1C1C1C;
  font-weight: 500;
  border-bottom-color: #E60000;
}

.eb-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.eb-nav-link-btn {
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  font-size: 0.8125rem;
  color: #4A4A4A;
  cursor: pointer;
  white-space: nowrap;
}

.eb-nav-link-btn:hover {
  color: #E60000;
}

/* Main Dashboard Area */
.eb-main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.eb-greeting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eb-greeting-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 300;
  margin: 0 0 0.2rem;
  color: #1C1C1C;
}

.eb-greeting-sub {
  font-size: 0.8125rem;
  color: #6B6A65;
  margin: 0;
}

.eb-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: none;
  border: none;
  padding: 0.25rem 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #C90000;
  cursor: pointer;
}

.eb-edit-link:hover {
  text-decoration: underline;
}

/* Dashboard 2-Column Layout */
.eb-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .eb-dashboard-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    gap: 1.75rem;
  }
}

/* Cards */
.eb-card {
  background: #FFFFFF;
  border: 1px solid #EAE7E0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.eb-networth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.eb-networth-card:hover {
  border-color: #CFCBC0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.eb-networth-label {
  font-size: 0.9375rem;
  color: #1C1C1C;
}

.eb-networth-date {
  font-size: 0.75rem;
  color: #777671;
  margin-left: 0.35rem;
}

.eb-networth-val {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #1C1C1C;
}

/* Favoriten Panel */
.eb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid #EEECE6;
}

.eb-panel-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6B6A65;
  margin: 0;
}

.eb-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-account-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.95rem 1.35rem;
  border-bottom: 1px solid #F0EEE9;
  transition: background-color 140ms ease;
}

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

.eb-account-row:hover {
  background-color: #FAF9F6;
}

.eb-acc-icon {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A4A4A;
}

.eb-acc-info {
  min-width: 0;
}

.eb-acc-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1C1C1C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-acc-meta {
  font-size: 0.72rem;
  color: #777671;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-acc-perf {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1E6D91;
  font-variant-numeric: tabular-nums;
  padding-right: 0.5rem;
}

.eb-acc-amount {
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #1C1C1C;
}

.eb-acc-amount.is-negative {
  color: #C90000;
}

.eb-row-menu-btn {
  background: none;
  border: none;
  width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5A5A5A;
  border-radius: 2px;
}

.eb-row-menu-btn:hover {
  background: #ECEAE4;
  color: #1C1C1C;
}

.eb-row-dropdown {
  position: absolute;
  right: 16px;
  top: calc(100% - 6px);
  z-index: 30;
  min-width: 190px;
  background: #FFFFFF;
  border: 1px solid #DCD9D0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0;
}

.eb-row-dropdown button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  color: #1C1C1C;
  cursor: pointer;
}

.eb-row-dropdown button:hover {
  background: #F5F4F0;
  color: #E60000;
}

/* Credit Card Mini Badges */
.eb-card-badge {
  width: 32px;
  height: 21px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.eb-card-badge--mc {
  background: linear-gradient(135deg, #2D2A26 0%, #595248 100%);
  border: 1px solid #B69553;
}

.eb-card-badge--visa {
  background: linear-gradient(135deg, #E8D5A7 0%, #C6A358 100%);
  color: #1B3664;
  border: 1px solid #B08E45;
}

/* Right Column: To-Dos & Schnellzugriffe */
.eb-side-section-label {
  font-size: 0.8125rem;
  color: #6B6A65;
  margin: 0 0 0.65rem;
  font-weight: 400;
}

.eb-todo-stack {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.eb-todo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #EAE7E0;
  padding: 0.95rem 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.eb-todo-card:hover {
  border-color: #CFCBC0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eb-todo-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.eb-todo-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eb-ebill-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #009DE0;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eb-todo-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E60000;
  border: 1.5px solid #FFFFFF;
}

.eb-todo-title {
  font-size: 0.875rem;
  font-weight: 400;
  color: #1C1C1C;
  line-height: 1.35;
}

.eb-todo-sub {
  font-size: 0.75rem;
  color: #777671;
  margin-top: 0.15rem;
}

/* Schnellzugriffe Card */
.eb-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-quick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid #F0EEE9;
  font-size: 0.875rem;
  color: #1C1C1C;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.eb-quick-btn:last-child {
  border-bottom: none;
}

.eb-quick-btn:hover {
  background-color: #FAF9F6;
  color: #E60000;
}

.eb-quick-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F9F5F5;
  color: #C90000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sub-views (Vermögen, Konten, Zahlungen, Märkte, Produkte, Mailbox) */
.eb-section-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .eb-section-grid-2 {
    grid-template-columns: 1.15fr 1fr;
  }
}

.eb-alloc-bar {
  display: flex;
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}

.eb-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eb-kpi-card {
  background: #FFFFFF;
  border: 1px solid #EAE7E0;
  padding: 1.1rem 1.25rem;
}

.eb-kpi-label {
  font-size: 0.75rem;
  color: #6B6A65;
  margin-bottom: 0.35rem;
}

.eb-kpi-value {
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Login Screen */
.eb-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.eb-login-card {
  width: min(460px, 100%);
  background: #FFFFFF;
  border-top: 4px solid #E60000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2.25rem;
}

.eb-login-demo-banner {
  background: #F5F4F0;
  border-left: 3px solid #1E6D91;
  padding: 0.75rem 0.95rem;
  font-size: 0.8125rem;
  color: #333333;
  margin-bottom: 1.35rem;
}

.eb-login-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.eb-login-step {
  flex: 1;
  height: 3px;
  background: #E4E2DC;
}

.eb-login-step.is-active {
  background: #E60000;
}

.eb-login-card .ubs-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.eb-login-card .ubs-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1C1C1C;
}

.eb-login-card .ubs-field input,
.eb-login-card .ubs-field select {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid #D8D5CD;
  background: #FFFFFF;
  border-radius: 0;
}

.eb-login-card .ubs-field input:focus {
  border-color: #1C1C1C;
  outline: none;
}

.eb-edit-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: #FAF9F5;
  border-bottom: 1px solid #EEECE6;
  font-size: 0.8125rem;
}

.ubs-form-alert--error {
  background: #FDF2F2;
  border-left: 4px solid #C90000;
  color: #9A0000;
  font-weight: 500;
}

@media (max-width: 600px) {
  .eb-account-row {
    grid-template-columns: 32px minmax(0, 1fr) auto 22px;
    gap: 0.55rem;
    padding: 0.85rem 0.85rem;
  }
  .eb-acc-perf {
    display: none;
  }
}
