:root {
  --primary: #0078d4;
  --white: #ffffff;
  --sidebar-bg: #f7f7f7;
  --border-color: #e1dfdd;
  --text-dark: #242424;
  --text-muted: #605e5c;
  --hover-bg: #edebe9;
  --dark: #3b3b3b;
  --black: #000000;
}
.document-accordion {
  width: 100%;
}

.accordion-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  text-align: left;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-toggle-btn[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.document-submenu {
  padding-left: 14px;
}

.sidebar-sublink {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-top: 4px;
  border: none;
  background: transparent;
  padding: 10px 14px;
  text-align: left;
  border-radius: 8px;
  color: inherit;
  font-size: 18px !important;
}
.doc-item i {
  color: #004a99;
}
.doc-item span {
  font-size: 16px;
}
.sidebar-sublink:hover {
  background: var(--hover-bg);
}

.sidebar-sublink.active {
  background: var(--hover-bg);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--white);
  color: var(--dark);
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 20px 0;
  background-color: #3b3b3b;
  font-size: 16px;
  color: #fff;
  border-top: 1px solid #555;
  width: 100%;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
/*===================MSlogo ====================*/
.hero-cert-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 14px 0 20px 0;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
  .hero-cert-logo {
    max-width: 220px;
    margin: 12px auto 18px auto;
  }

  .col-lg-6 {
    text-align: center;
  }
}
/* ================= NAVBAR ================= */
.nav-item p {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0;
  font-size: 18px;
}
.blinking {
  /* Ensure the icon's color stays fixed */
  color: #fff; /* or set a specific color like: color: #000; */
  animation: bgChange 1.2s linear infinite;
}
@keyframes bgChange {
  0% {
    background-color: #0078d4;
  }
  50% {
    background-color: #004a99;
  }
  100% {
    background-color: #0078d4;
  }
}
.custom-navbar {
  background-color: var(--dark);
  padding: 15px 0;
}

.logo {
  color: var(--white) !important;
  font-weight: bold;
  font-size: 20px;
}

.nav-custom-link {
  color: var(--white) !important;
  font-size: 18px;
  font-weight: 600;
}

.nav-custom-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white);
  border-radius: 6px;
  padding: 8px 18px;
  border: none;
}

.btn-primary-custom:hover {
  background-color: #004a99;
  color: var(--white);
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  padding: 8px 18px;
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ================= HERO SECTION ================= */

.hero-section {
  background: linear-gradient(135deg, #f8fefe 0%, #ffffff 100%);
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 500px;
}

/* Floating Cards */

.hero-card {
  position: absolute;
  background: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  max-width: 220px;
}

.hero-card strong {
  color: var(--primary);
}

.hero-card.top {
  top: 10%;
  right: 5%;
}

.hero-card.bottom {
  bottom: 15%;
  left: 5%;
}

/* Responsive */

@media (max-width: 992px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-card {
    display: none;
  }
  .hero-section {
    padding: 0px 0;
    background: linear-gradient(135deg, #f8fefe 0%, #ffffff 100%);
  }
}

/* ================= LOGIN SECTION ================= */

.login-section {
  background: linear-gradient(135deg, #f8fefe 0%, #ffffff 100%);
}

.login-left {
  background-color: var(--primary);
  padding: 60px;
}

.login-left img {
  max-width: 80%;
}

.login-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-subtext {
  color: var(--dark);
  margin-bottom: 30px;
}

.custom-input {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ddd;
}

.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(0, 153, 153, 0.25);
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 12px;
  border: none;
  font-weight: 600;
}

.btn-primary-custom:hover {
  background-color: #004a99;
}

/* ================= DASHBOARD SECTION ================= */
.portal-layout {
  display: flex;
  background-color: var(--sidebar-bg);
  height: 100% !important;
}



/* lab */
.lab-card {
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.lab-frame-scroll {
  width: 100%;
  height: calc(100vh - 150px);
  overflow: hidden;
}

.lab-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  
}
.tab-content-box {
  background: #fff;
}

/* theory */
#theoryContainer {
  border: 1px solid #e5e7eb;
  border-radius: 0 10px 10px 10px !important;
}

#theoryContainer p{
  font-size: 18px;
  margin-bottom: 5px !important;
  
}
.tab-note-card {
  padding: 10px 15px;
  height: calc(100vh - 150px);
  overflow-y: scroll;
}
.tab-note-card p {
  font-size: 18px !important;
  color: #000000 !important;
  margin-bottom: 5px !important;
}
.tab-note-card ol {
  margin-bottom: 5px !important;
}
.tab-note-card li {
  font-size: 18px !important;
  color: #000000 !important;
}
.tab-note-card h5 {
  color: #000000;
}
.tab-note-card img {
  height: 300px;
  margin: auto;
  display: flex;
}
.code-card {
  position: relative;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-top: 10px;
}

.code-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.code-block {
  margin: 0;
  padding: 52px 16px 16px 16px;
  background: #0f172a;
  color: #e5e7eb;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 14px;
  border-radius: 12px;
}

.code-block code {
  color: inherit;
}
#codeContainer {
  overflow-y: scroll;
  height: calc(100vh - 150px);
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow-y: scroll;
}

.nav-tabs {
  border-bottom: 0 !important;
  font-size: 14px;
}

/* test */
.assessment-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}


/* sidebar */
.portal-sidebar {
  width: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 0;
  overflow-y: auto;
  height: 100%;
}

.sidebar-header {
  padding: 15px 15px 0px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.sidebar-header h5 {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 18px;
}

.sidebar-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.sidebar-app-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #e6f2fb;
  color: #0078d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sidebar-search {
  margin-bottom: 0;
  padding: 10px 15px;
}

.sidebar-search-input {
  border-radius: 2px;
  border: 1px solid #c8c6c4;
  padding-left: 32px;
  height: 34px;
  font-size: 14px;
}

.sidebar-search-input:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.sidebar-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
}

.sidebar-section-label {
  font-size: 16px;
  color: var(--text-muted);
  padding: 0 15px 10px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 0;
}

.sidebar-link {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.sidebar-link-inner {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  color: var(--primary);
}

.sidebar-link i {
  width: 16px;
  font-size: 15px;
  color: #0078d4;
  margin-right: 10px;
}

.sidebar-link:hover {
  background: var(--hover-bg);
  color: var(--text-dark);
}

.sidebar-link.active {
  background: #edebe9;
  color: var(--text-dark);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}
.sidebar-link-inner span{
  font-size:18px;
}
/* main content */
.service-subtext {
  color: #0d6efd;
  font-weight: 500;
}
.portal-main {
  flex: 1;
  padding: 18px 22px;
  background: #f5f6f8;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.portal-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 20px;
}

.portal-subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

.portal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.azure-btn {
  border: 1px solid #d1d1d1 !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #242424 !important;
  font-size: 13px !important;
}

.portal-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-box,
.filter-chip {
  background: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 13px;
  color: #242424;
}

.filter-box {
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}

.filter-chip-add {
  color: #0078d4;
  background: #fff;
}

/* content */
.portal-content-card {
  background: #fff;
  border: 1px solid #e1dfdd;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  height: 100%;
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table thead th {
  background: #fff;
  border-bottom: 1px solid #e1dfdd;
  color: #242424;
  font-weight: 600;
  text-align: left;
  padding: 12px 10px;
  white-space: nowrap;
}

.portal-table tbody td {
  border-bottom: 1px solid #edebe9;
  padding: 12px 10px;
  color: #323130;
  vertical-align: middle;
}

.portal-table tbody tr:hover {
  background: #faf9f8;
}

.status-success {
  color: #107c10;
  font-weight: 600;
}

.portal-content-card h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.portal-content-card p {
  color: #374151;
  line-height: 1.6;
}

.sample-box {
  background: #f8fbfc;
  border-top: 1px solid #e1dfdd;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 18px;
}

/* loading overlay */
#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading-card {
  background: white;
  padding: 30px 50px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
}

.simple-content-card {
  padding: 20px 25px;
  border-radius: 8px;
}

.simple-content-card h4 {
  color: #242424;
  font-weight: 600;
  font-size: 22px;
}

.simple-content-card p {
  color: #605e5c;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-toggle {
  border: 1px solid #d1d1d1;
  background: #fff;
  color: #242424;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar-overlay {
  display: none;
}

.iframe-single,
.iframe-grid {
  display: grid;
  gap: 20px;
}

.iframe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iframe-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.iframe-card-header {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.iframe-wrap {
  width: 100%;
  height: calc(100vh - 250px);
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 992px) {
  .iframe-grid {
    grid-template-columns: 1fr;
  }

  .iframe-wrap {
    height: 550px;
  }
}
@media (max-width: 1600px) and (min-width:1000px){
  .portal-sidebar{
  width: 300px !important;
}
}

@media (max-width: 992px) {
  .iframe-wrap {
    height: 75vh;
    min-height: 500px;
  }
}
@media (max-width: 992px) {
  .portal-layout {
    flex-direction: row;
    position: relative;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100vh;
    z-index: 1050;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    transition: left 0.25s ease;
    overflow-y: auto;
  }

  .portal-sidebar.show {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .portal-main {
    width: 100%;
    padding: 16px;
  }

  .portal-topbar {
    align-items: flex-start;
  }

  .portal-actions {
    width: 100%;
    gap: 8px;
  }

  .portal-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .filter-box,
  .filter-chip {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .portal-content-card {
    height: auto;
  }

  .portal-table-wrap {
    overflow-x: auto;
  }

  .portal-table {
    min-width: 760px;
  }
  .portal-sidebar{
  width: 300px !important;
}
}
.welcome-center-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.2;
}

.welcome-text {
  font-size: 18px !important;
  color: #475569;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .welcome-center-card {
    /* min-height: 300px; */
    padding: 24px;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .welcome-text {
    font-size: 0.95rem;
  }
  .simple-content-card h4 {
    font-size: 18px;
  }
  .simple-content-card {
  padding: 10px;

}
.tab-note-card img{
  height: auto;
}

.marg{
  margin-top: 10px;
}
.hero-title {
  font-size: 24px;
  line-height: normal;
}
}
