﻿html {
  font-size: 14px;
  height: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Remove Metronic background image */
body {
  background-image: none !important;
  background-color: #ffffff !important;
}

#kt_body {
  background-image: none !important;
  background-color: #ffffff !important;
}

.page {
  background-image: none !important;
  background-color: #ffffff !important;
}

/* Remove any background images from wrapper */
.wrapper {
  background-image: none !important;
}

/* Fix header text colors */
#kt_header .header-logo h2,
#kt_header .menu-title,
#kt_header .menu-link {
  color: #181C32 !important;
}

#kt_header .menu-link:hover {
  color: #009EF7 !important;
}

/* Fix toolbar text colors */
#kt_toolbar h3 {
  color: #181C32 !important;
}

/* Header text colors override */
.header .text-dark {
  color: #181C32 !important;
}

.header .text-gray-800 {
  color: #181C32 !important;
}

/* Menu specific fixes */
.menu .menu-link .menu-title {
  color: #181C32 !important;
}

.menu .menu-link:hover .menu-title {
  color: #009EF7 !important;
}

.menu .menu-link.active .menu-title {
  color: #009EF7 !important;
}

/* Header background for better contrast */
#kt_header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #E4E6EF;
}

/* Toolbar text color fix */
.toolbar h3,
.toolbar .text-dark {
  color: #181C32 !important;
}

/* Footer styling */
#kt_footer {
  background-color: #f5f8fa;
  border-top: 1px solid #e4e6ef;
  margin-bottom: 0 !important;
  padding-bottom: 1rem !important;
  flex-shrink: 0;
}

/* Footer text colors */
#kt_footer .text-dark,
#kt_footer .text-gray-800 {
  color: #181C32 !important;
}

#kt_footer .menu-link {
  color: #7E8299 !important;
}

#kt_footer .menu-link:hover {
  color: #009EF7 !important;
}

/* Fix card-body infinite growth issue */
.card-body {
  min-height: 0;
}

.lesson-content-card,
.sidebar-card {
  min-height: 0;
  height: auto;
}

/* Ensure flex containers don't cause infinite growth */
#kt_content_container {
  min-height: 0;
}

.content.flex-row-fluid {
  min-width: 0;
}

.flex-lg-row-fluid {
  min-width: 0;
}

/* Remove any extra spacing after footer */
#kt_scrolltop {
  margin: 0;
  padding: 0;
}

/* Ensure wrapper doesn't add extra space */
#kt_wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.flex-root,
.page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Sticky Footer Layout - REMOVED/MODIFIED */
/*
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.flex-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#kt_content {
  flex: 1 0 auto;
}

#kt_footer {
  flex-shrink: 0;
  margin-top: auto;
}
*/