/**
 * Admin starter custom styles — not part of Frest vendor bundle.
 * Brand spacing rules adapted from Frest demo.css (starter shell only).
 */

.light-style .menu .app-brand.demo,
.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  align-items: center;
  justify-content: center;
  display: flex;
  width: var(--admin-logo-width, 48px);
  height: var(--admin-logo-height, 32px);
}

.app-brand-logo.demo svg {
  width: 1.7rem;
  height: 1.7rem;
}

.admin-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-brand-logo .admin-brand-logo-dark {
  display: none;
}

.dark-style .app-brand-logo .admin-brand-logo-light {
  display: none;
}

.dark-style .app-brand-logo .admin-brand-logo-dark {
  display: block;
}

@media (min-width: 1200px) {
  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu .app-brand-link {
    width: 100%;
    flex: 0 0 100%;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu .app-brand-logo.demo {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu .app-brand-text {
    display: none;
  }
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.45px;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

.content-wrapper .navbar {
  z-index: auto;
}

/* Sidebar brand: keep logo and site name on one line */
.app-brand {
  display: flex;
  align-items: center;
}

.app-brand .app-brand-link {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.app-brand .app-brand-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.app-brand .app-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Card header with action button */
.card-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Table action buttons */
.table .btn-icon {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Settings file input preview */
.settings-file-preview {
  max-height: 80px;
}

.settings-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
}

.settings-logo-preview-light {
  background: #fff;
}

.settings-logo-preview-dark {
  background: #1c222f;
}

.settings-logo-preview img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.settings-favicon-preview {
  max-height: 32px;
}

/* Profile avatar preview (Frest account settings pattern) */
.profile-avatar-preview {
  object-fit: cover;
}
