/* Layout spacing so content is not hidden behind fixed header/footer  
.layout-content {
  margin-top: 60px;
  margin-bottom: 70px;
  padding: 15px;
}

/* Offcanvas overrides  
.offcanvas {
  z-index: 2000;
}

.offcanvas .list-group-item {
  border: none;
  font-size: 16px;
}

/* Icons  
.offcanvas i {
  width: 24px;
}

/* Header brand image  
.navbar-brand img {
  height: 30px;
  width: 95px;
}

/* Footer logo  
.footer-logo {
  height: 39px;
  width: 109px;
}
*/
/* Prevent body scroll when offcanvas is open  
body.offcanvas-open {
  overflow: hidden;
}
/* HEADER */
.page-content {
  padding-bottom: 60px; /* footer height */
}


.app-header {
  background-color: var(--color-text-primary);
  color: var(--color-header-text);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left i,
.header-right i {
  color: var(--color-header-icon);
}

.header-left i.fa-bars {
  font-size: 20px;
  margin-right: 12px;
}

.header-left i.fa-table-cells {
  font-size: 18px;
  margin-right: 12px;
}

.header-center {
  flex: 1;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-header-text);
}

.user-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-circle i {
  font-size: 14px;
  color: #FFFFFF;
}

/* FOOTER
.app-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
 */
.app-footer {
    position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 70px; /* määrittele selkeä korkeus */
  background-color: var(--color-text-primary);
  border-top: 1px solid #ccc;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000; /* varmistaa että pysyy päällä */
}


.footer-logo {
  height: 40px;
}
/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 900;
}

/* Päävalikko (vasen) */
.menu-panel-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

/* Käyttäjävalikko (oikea) */
.menu-panel-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

/* Panel header */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.menu-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.menu-close {
  font-size: 22px;
  cursor: pointer;
  color: var(--color-text-primary);
}

/* Main menu list */
.main-menu {
  padding-top: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
}

.menu-item + .menu-item {
  border-top: 1px solid var(--color-border-subtle);
}

.menu-icon-box {
  width: 30px;
  height: 30px;
  background-color: var(--color-warm-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.menu-icon-box i {
  font-size: 16px;
  color: var(--color-brand);
}

.menu-text {
  font-size: 16px;
  color: var(--color-text-primary);
}
.page-wrapper {
  background: var(--color-page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: var(--space-4);
}
