/* ==========================================================================
   SLDS Icons - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal !important;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  /* Hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: 'Century Gothic', 'Avant Garde', sans-serif;
  font-style: normal;
  background-color: #FFFFFF;
  color: #001E5B;
  min-height: 100vh;
  display: flex;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 32px 32px 32px 0;
  margin-left: 0;
  min-width: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #FFFFFF;
  padding: 32px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  font-size: 14px;
  border-left: 1px solid #E5E5E5;
  flex-shrink: 0;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: #001E5B;
  margin-bottom: 20px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 8px 0;
  color: #0250D9;
  text-decoration: underline;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.sidebar-nav a:hover {
  color: #0140A8;
}

.sidebar-nav a.active {
  font-weight: 700;
  color: #001E5B;
}

.sidebar-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E5E5E5;
}

.sidebar-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #001E5B;
  margin-bottom: 8px;
}

.sidebar-section-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-brand {
  background: #0250D9;
  color: #fff;
  border: 1px solid #0250D9;
}

.btn-brand:hover {
  background: #0140A8;
  border-color: #0140A8;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #0250D9;
  border: 1px solid #0250D9;
}

.btn-outline:hover {
  background: #f0f8ff;
}

/* Button icon styles */
.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-icon--white {
  filter: brightness(0) invert(1);
}

.btn-icon--brand {
  filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(220deg) brightness(95%) contrast(98%);
}

/* ==========================================================================
   Search
   ========================================================================== */
.search-container {
  max-width: 100%;
  margin-bottom: 32px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: #747474;
}

.search-input {
  width: 100%;
  padding: 14px 48px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid #E5E5E5;
  border-radius: 9999px;
  outline: none;
  background: #fff;
  color: #001E5B;
}

.search-input:focus {
  border-color: #0250D9;
  box-shadow: 0 0 0 3px rgba(2, 80, 217, 0.15);
}

.search-input::placeholder {
  color: #999;
}

.clear-btn {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: #e5e5e5;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #444;
  transition: background 0.15s;
}

.clear-btn:hover {
  background: #d4d4d4;
}

.clear-btn svg {
  width: 14px;
  height: 14px;
}

.clear-btn.visible {
  display: flex;
}

/* ==========================================================================
   Icon Types Section
   ========================================================================== */
.icon-types {
  margin-bottom: 48px;
}

.icon-types-title {
  font-family: 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  color: #001E5B;
  margin-bottom: 24px;
}

.icon-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.icon-type-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.icon-type-card-icon.with-bg {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-type-card-icon.with-bg.circle {
  border-radius: 50%;
}

.icon-type-card-icon.with-bg img {
  width: 22px;
  height: 22px;
}

.icon-type-card-icon.no-bg img {
  width: 32px;
  height: 32px;
}

.icon-type-card h3 {
  font-family: 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  color: #001E5B;
  margin-bottom: 12px;
}

.icon-type-card p {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.icon-type-card a {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #0176d3;
  text-decoration: underline;
}

.icon-type-card a:hover {
  color: #001E5B;
}

/* ==========================================================================
   Icon Sections & Grid
   ========================================================================== */
.icon-section {
  margin-bottom: 48px;
}

.section-header {
  font-family: 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  color: #001E5B;
  margin-bottom: 24px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: 0;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #F3F3F3;
  border-radius: 8px;
}

.icon-item img {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

#utility-grid .icon-item img {
  width: 40px;
  height: 40px;
}

.icon-item span {
  font-size: 11px;
  color: #001E5B;
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}

.icon-item.hidden {
  display: none;
}

/* ==========================================================================
   Icon Containers (for Action, Standard, Custom icons)
   ========================================================================== */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.icon-container-circle {
  border-radius: 50%;
}

.icon-container img {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
}

.icon-container.icon-container-large img {
  width: 40px;
  height: 40px;
}

/* ==========================================================================
   No Results Message
   ========================================================================== */
.no-results {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: #666;
  font-size: 16px;
}

.no-results.visible {
  display: block;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
  .icon-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .sidebar {
    width: 200px;
    min-width: 200px;
    padding: 24px 16px;
  }
  
  .icon-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sidebar {
    width: 180px;
    min-width: 180px;
  }
  
  .icon-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    display: block;
  }
  
  .sidebar {
    display: none;
  }
  
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .main-content {
    padding: 20px 20px 20px 0;
    margin-left: 0;
  }
  
  .icon-types-grid {
    grid-template-columns: 1fr;
  }
}
