/* ================================================
   Certifyd Brand Overrides for Syncfusion Fluent 2
   ================================================ */

:root {
  --color-sf-primary: #1B2A4A;
  --color-sf-primary-text-color: #FFFFFF;
  --color-sf-secondary: #2CC5C5;
}

/* ================================================
   Layout Utility Classes
   (Replacing MudGrid, MudStack, MudPaper, etc.)
   ================================================ */

.sf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-container-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
}

.sf-grid {
  display: grid;
  gap: 24px;
}

.sf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sf-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .sf-grid-2, .sf-grid-3, .sf-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .sf-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sf-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.sf-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-stack-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.sf-stack-row-wrap {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.sf-paper {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e0e0e0;
}

.sf-spacer {
  flex-grow: 1;
}

/* ================================================
   App Bar Styles
   ================================================ */

.sf-appbar {
  background: #1B2A4A;
  color: #fff;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sf-appbar .sf-logo {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.sf-appbar .sf-logo .sf-logo-accent {
  color: #2CC5C5;
}

.sf-appbar-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.875rem;
}

.sf-appbar-link:hover {
  color: #fff;
}

/* Override Syncfusion button colors in appbar */
.sf-appbar .e-btn.e-flat.e-inherit,
.sf-appbar .e-btn.e-flat.e-inherit:hover {
  color: #fff;
  background: transparent;
}

.sf-appbar .e-dropdown-btn.e-flat.e-inherit {
  color: #fff;
  background: transparent;
}

/* ================================================
   Sidebar / Navigation Styles
   ================================================ */

.sf-sidebar-nav {
  background: #1B2A4A;
  color: rgba(255,255,255,0.85);
  height: 100%;
  overflow-y: auto;
}

.sf-sidebar-nav .e-treeview .e-text-content,
.sf-sidebar-nav .e-treeview .e-list-text {
  color: rgba(255,255,255,0.85);
}

.sf-sidebar-nav .e-treeview .e-list-item.e-active > .e-text-content .e-list-text {
  color: #2CC5C5;
}

.sf-sidebar-nav .e-treeview .e-list-icon {
  color: rgba(255,255,255,0.7);
}

.sf-sidebar-nav .e-treeview .e-icon-collapsible,
.sf-sidebar-nav .e-treeview .e-icon-expandable {
  color: rgba(255,255,255,0.5);
}

.sf-sidebar-version {
  padding: 12px 16px;
  text-align: center;
  margin-top: auto;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

/* ================================================
   App Layout
   ================================================ */

.sf-app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sf-body-layout {
  display: flex;
  flex: 1;
}

.sf-main-content {
  flex: 1;
  padding: 16px 0;
  background: #F5F7FA;
  min-height: calc(100vh - 56px);
}

/* ================================================
   Typography helpers (replacing MudText Typo)
   ================================================ */

.typo-h3 { font-size: 1.75rem; font-weight: 600; color: #1B2A4A; margin: 0; }
.typo-h4 { font-size: 1.5rem; font-weight: 600; color: #1B2A4A; margin: 0; }
.typo-h5 { font-size: 1.25rem; font-weight: 600; color: #1B2A4A; margin: 0; }
.typo-h6 { font-size: 1rem; font-weight: 600; color: #1B2A4A; margin: 0; }
.typo-subtitle1 { font-size: 1rem; color: #546E7A; margin: 0; }
.typo-subtitle2 { font-size: 0.875rem; color: #546E7A; margin: 0; }
.typo-body1 { font-size: 1rem; color: #1B2A4A; margin: 0; }
.typo-body2 { font-size: 0.875rem; color: #1B2A4A; margin: 0; }
.typo-caption { font-size: 0.75rem; color: #546E7A; margin: 0; }
