.dashboard {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.dashboard__sidebar {
  width: 260px;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
@media (min-width: 992px) {
  .dashboard__sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
  }
}
.dashboard__sidebar.open {
  transform: translateX(0);
}

.dashboard__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard__logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.dashboard__nav {
  flex: 1;
  padding: 1rem 0;
}

.dashboard__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9375rem;
}
.dashboard__nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.dashboard__nav-item.active {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-right: 3px solid #38bdf8;
}
.dashboard__nav-item i {
  width: 1.25rem;
  text-align: center;
}

.dashboard__sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard__main {
  flex: 1;
  margin-left: 0;
  padding: 1.5rem;
}
@media (min-width: 992px) {
  .dashboard__main {
    margin-left: 260px;
    padding: 2rem;
  }
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard__header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
}
@media (min-width: 992px) {
  .dashboard__mobile-toggle {
    display: none;
  }
}

.dashboard__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard__user-name {
  font-weight: 500;
  color: #475569;
  display: none;
}
@media (min-width: 768px) {
  .dashboard__user-name {
    display: block;
  }
}

.dashboard__user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.dashboard__stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .dashboard__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.stat-card__icon--blue {
  background: rgba(56, 189, 248, 0.1);
  color: #0ea5e9;
}
.stat-card__icon--green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.stat-card__icon--purple {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}
.stat-card__icon--orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.stat-card__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-card__label {
  font-size: 0.875rem;
  color: #64748b;
}

.dashboard__section {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dashboard__section-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.data-table {
  overflow-x: auto;
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
}
.data-table td {
  font-size: 0.9375rem;
  color: #334155;
}
.data-table td strong {
  color: #0f172a;
}
.data-table td small {
  color: #64748b;
}
.data-table td code {
  background: #f1f5f9;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  cursor: pointer;
}
.data-table td code:hover {
  background: #e2e8f0;
}
.data-table .loading-row td {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}
.data-table .empty-row {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}
.data-table .empty-row a {
  color: #0ea5e9;
}
.data-table .actions-cell {
  white-space: nowrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-icon:hover {
  background: #f1f5f9;
  color: #0ea5e9;
}

.activity-feed {
  max-height: 300px;
  overflow-y: auto;
}

.activity-feed__empty {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}
.activity-feed__empty i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.activity-item:last-child {
  border-bottom: none;
}

.activity-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
}
.activity-item__icon--entry_added {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.activity-item__icon--proof_generated {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}
.activity-item__icon--ledger_created {
  background: rgba(56, 189, 248, 0.1);
  color: #0ea5e9;
}
.activity-item__icon--anchor_published {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.activity-item__content {
  flex: 1;
}
.activity-item__content p {
  color: #334155;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.activity-item__content span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.quick-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.quick-action:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.quick-action i {
  font-size: 1.5rem;
  color: #0ea5e9;
  margin-bottom: 0.75rem;
}
.quick-action span {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.quick-action p {
  font-size: 0.75rem;
  color: #64748b;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.btn-primary.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}
.btn-link:hover {
  text-decoration: underline;
}

.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast--success i {
  color: #22c55e;
}
.toast--error i {
  color: #ef4444;
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card__logo {
  margin-bottom: 1.5rem;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.auth-card__subtitle {
  color: #64748b;
  font-size: 0.9375rem;
}

.auth-form__group {
  margin-bottom: 1.25rem;
}

.auth-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
}

.auth-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.auth-form__input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.auth-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
}
.auth-form__checkbox input {
  width: 1rem;
  height: 1rem;
}

.auth-form__link {
  font-size: 0.875rem;
  color: #0ea5e9;
  text-decoration: none;
}
.auth-form__link:hover {
  text-decoration: underline;
}

.auth-form__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  padding: 0.875rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.auth-form__error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.auth-card__divider::before, .auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-card__divider span {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.auth-card__social {
  display: flex;
  gap: 1rem;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.auth-social-btn i {
  font-size: 1.125rem;
}

.auth-card__footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: #64748b;
}
.auth-card__footer a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}
.auth-card__footer a:hover {
  text-decoration: underline;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.auth-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}
.auth-footer a:hover {
  color: #fff;
}

.export-form {
  max-width: 600px;
}

.export-form__group {
  margin-bottom: 1.5rem;
}

.export-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.export-form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
}
.export-form__select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.export-form__input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}
.export-form__input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.export-form__options {
  display: grid;
  gap: 0.75rem;
}

.export-form__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.export-form__radio:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.export-form__radio:has(input:checked) {
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.export-form__radio input {
  margin-top: 0.25rem;
}
.export-form__radio strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.export-form__radio p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.export-form__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.export-form__field label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.export-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #475569;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.export-form__checkbox input {
  width: 1rem;
  height: 1rem;
}

.export-form__actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: #e2e8f0;
}

.export-preview {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  max-height: 400px;
  overflow: auto;
}
.export-preview pre {
  margin: 0;
  color: #e2e8f0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.info-card i {
  font-size: 2rem;
  color: #0ea5e9;
  margin-bottom: 1rem;
}
.info-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.info-card p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}
