/*
Theme Name: mspbodmann
Description: A minimal WordPress theme with a centered login form and Bootstrap 5 integration. Adopted from https://mspbodmann.com/
Version: 1.0
Author: Sarah Gmelin
Text Domain: mspbodmann
*/

@charset "UTF-8";

/* Font Face for Roboto */
@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    src: url('fonts/Roboto/Roboto-Light-webfont.eot');
    src: url('fonts/Roboto/Roboto-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Light-webfont.woff') format('woff'),
         url('fonts/Roboto/Roboto-Light-webfont.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Light-webfont.svg#RobotoLight') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    src: url('fonts/Roboto/Roboto-Regular-webfont.eot');
    src: url('fonts/Roboto/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Regular-webfont.woff') format('woff'),
         url('fonts/Roboto/Roboto-Regular-webfont.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Regular-webfont.svg#RobotoRegular') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    src: url('fonts/Roboto/Roboto-Medium-webfont.eot');
    src: url('fonts/Roboto/Roboto-Medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Medium-webfont.woff') format('woff'),
         url('fonts/Roboto/Roboto-Medium-webfont.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Medium-webfont.svg#RobotoMedium') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 600;
    src: url('fonts/Roboto/Roboto-Bold-webfont.eot');
    src: url('fonts/Roboto/Roboto-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Bold-webfont.woff') format('woff'),
         url('fonts/Roboto/Roboto-Bold-webfont.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Bold-webfont.svg#RobotoMedium') format('svg');
}

/* -----------------------------------------------------
   Global Styles
----------------------------------------------------- */

html, body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

/* -----------------------------------------------------
   Custom Table Styles
----------------------------------------------------- */

.table-custom {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px !important;
}

.table-custom thead th {
  background-color: #DFE6C5;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #c6c8b9;
}

/* -----------------------------------------------------
   Button Styles for '+' Buttons (and Search Button)
----------------------------------------------------- */

.btn-plus {
  border-radius: 12px;
  background-color: #D6EB9C;
  padding: 13px 18px;
  border: none;
  color: #000;
  text-decoration: none;
  display: inline-block;
}

/* -----------------------------------------------------
   Search Field Styles
----------------------------------------------------- */

.search-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 30px;
}

.search-field {
  background-color: #E9E9DD;
  width: 400px;
  height: 46px;
  min-width: 360px;
  max-width: 755px;
  border-radius: 12px;
  padding-left: 56px; /* space for the magnifying icon */
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  border: none;
}

.search-field::placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* Magnifying glass icon inside search field */
.search-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #666;
}

/* -----------------------------------------------------
   Header Search Container
----------------------------------------------------- */

.header-search {
  display: flex;
  flex-direction: column;
}

.header-search .d-flex {
  width: 100%;
}

/* -----------------------------------------------------
   Additional Theme / Layout Styles (existing)
----------------------------------------------------- */

/* Gutenberg Basic Styles */
.has-text-align-center { text-align: center; }
.has-text-align-left   { text-align: left; }
.has-text-align-right  { text-align: right; }
.aligncenter           { clear: both; text-align: center; }
.alignleft             { float: left; margin-right: 2em; }
.alignright            { float: right; margin-left: 2em; }

.items-justified-left          { justify-content: flex-start; }
.items-justified-center        { justify-content: center; }
.items-justified-right         { justify-content: flex-end; }
.items-justified-space-between { justify-content: space-between; }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Paragraph & Heading blocks */
p { margin-bottom: 1em; }
p.has-background { padding: 1.25em 2.375em; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }

h1.has-background,
h2.has-background,
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background { padding: 1.25em 2.375em; }
.has-drop-cap:first-letter {
  float: left;
  font-size: 8.4em;
  line-height: 0.68;
  margin: 0.05em 0.1em 0 0;
  text-transform: uppercase;
}

/* Lists */
ol, ul {
  box-sizing: border-box;
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.wp-block-list.has-background { padding: 1.25em 2.375em; }

/* Image blocks */
.wp-block-image {
  box-sizing: border-box;
  margin: 0 0 1em;
}
.wp-block-image img {
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}
.wp-block-image.aligncenter { text-align: center; }

/* Columns and Column blocks */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap !important;
  box-sizing: border-box;
  margin-bottom: 1.75em;
}
.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
}

/* Button blocks */
.wp-block-button__link {
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: 9999px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  word-break: break-word;
}
.wp-block-button__link:active,
.wp-block-button__link:focus,
.wp-block-button__link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Separator / Divider */
.wp-block-separator {
  border: none;
  border-top: 2px solid;
  margin: 1.5em 0;
}
.wp-block-separator.is-style-dots {
  background: none !important;
  border: none !important;
  height: auto;
  text-align: center;
  line-height: 1;
}
.wp-block-separator.is-style-dots:before {
  content: "· · ·";
  letter-spacing: 2em;
}

/* Spacer */
.wp-block-spacer { clear: both; }

/* Quote & Pullquote */
.wp-block-quote {
  box-sizing: border-box;
  margin: 0 0 1em;
  overflow-wrap: break-word;
}
.wp-block-quote p { margin: 0; }
.wp-block-pullquote {
  box-sizing: border-box;
  margin: 0 0 1em;
  padding: 4em 0;
  text-align: center;
}
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p { margin: 0; }

/* Code & Preformatted */
.wp-block-code,
.wp-block-preformatted {
  box-sizing: border-box;
  margin: 0 0 1em;
  overflow-wrap: break-word;
}
.wp-block-preformatted { white-space: pre-wrap; }

/* Table (existing basic styles) */
.wp-block-table {
  overflow-x: auto;
}
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table td,
.wp-block-table th {
  border: 1px solid;
  padding: 0.5em;
}
.wp-block-table thead { border-bottom: 3px solid; }
.wp-block-table tfoot { border-top: 3px solid; }

/* Cover block */
.wp-block-cover {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  padding: 1em;
  background-position: 50%;
}
.wp-block-cover video.wp-block-cover__video-background,
.wp-block-cover .wp-block-cover__image-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Gallery (basic style) */
.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.wp-block-gallery .blocks-gallery-item {
  position: relative;
  margin: 0 1em 1em 0;
  width: calc(50% - 1em);
}
.wp-block-gallery .blocks-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Columns in galleries on larger screens */
@media (min-width: 600px) {
  .wp-block-gallery.columns-3 .blocks-gallery-item {
    width: calc(33.33333% - .66667em);
  }
  .wp-block-gallery.columns-4 .blocks-gallery-item {
    width: calc(25% - .75em);
  }
}

/* Group block */
.wp-block-group { box-sizing: border-box; }

/* Minimal headings and paragraphs with background colors */
:root :where(p.has-background) { padding: 1.25em 2.375em; }
:root :where(h1.has-background),
:root :where(h2.has-background),
:root :where(h3.has-background),
:root :where(h4.has-background),
:root :where(h5.has-background),
:root :where(h6.has-background) { padding: 1.25em 2.375em; }

/* Utility: border normalization */
html :where(.has-border-color) { border-style: solid; }
html :where([style*=border-width]) { border-style: solid; }
html :where([style*=border-top-width]) { border-top-style: solid; }
html :where([style*=border-right-width]) { border-right-style: solid; }
html :where([style*=border-bottom-width]) { border-bottom-style: solid; }
html :where([style*=border-left-width]) { border-left-style: solid; }
html :where([style*=border-top-color]) { border-top-style: solid; }
html :where([style*=border-bottom-color]) { border-bottom-style: solid; }
html :where([style*=border-left-color]) { border-left-style: solid; }
html :where([style*=border-right-color]) { border-right-style: solid; }

/* -----------------------------------------------------
   Additional Theme / Layout Styles (existing)
----------------------------------------------------- */

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.left-sidebar {
  width: 107px;
  background: #F1F1E6;
  padding: 16px 9px 76px 9px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-logo {
  margin-bottom: 30px;
  text-align: center;
}
.sidebar-logo img {
  max-width: 100%;
  height: auto;
}

.sidebar-nav { width: 100%; }
.sidebar-menu-items {
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  margin-top: 80px;
}
.sidebar-menu-items li {
  margin-bottom: 20px;
}
.sidebar-menu-items li a {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}
.sidebar-menu-items li a i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.logout-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-top: 50px;
}

.logout-button img {
  /* Adjust width/height as needed */
  width: 50px;
  height: 40px;
}

.logout-text {
  color: #76786B;
  margin-top: -8px;
  font-size: 13px;
}

.right-content {
  flex: 1;
  background: #FAFAEE;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  height: 80px;
}
.platform-title {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  text-align: left;
  color: #636466;
  margin-right: auto;
  margin-top: -20px;
}

.user-info {
  position: absolute;
  right: 20px;
  text-align: right;
  font-size: 14px;
  line-height: 1.2;
}
.user-name { font-weight: bold; }
.user-role { font-size: 12px; color: #666; }

.main-page-content {
  flex: 1;
  padding: 20px;
}

.login-mask {
  display: block;
  /*position: absolute;
  top: 100px;
  left: 40%;*/
  width: 300px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  padding: 1em;
  z-index: 9999;
  margin: auto;
}
.login-mask h3 {
  margin-top: 0;
  margin-bottom: 1em;
  text-align: center;
  color: #333 !important;
}
.login-mask input[type="text"],
.login-mask input[type="password"] {
  width: 100%;
  margin-bottom: 0.5em;
  padding: 0.5em;
}
.login-mask input[type="submit"] {
  width: 100%;


  border-radius: 12px;
  background-color: #D6EB9C;
  padding: 13px 18px;
  border: none;
  color: #000;
  text-decoration: none;
  display: inline-block;
}
.login-mask input[type="submit"]:hover {
  /*background: #0056b3;*/
}
.login-mask .lostpassword {
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.9em;
}

.login-username {
  height:50px;
}

/* Modified password-container to ensure full width */
.password-container {
  position: relative;
  display: block;
  width: 100%;
}
.password-container input[type="password"],
.password-container input[type="text"] {
  padding-right: 2.5rem;
}
.password-container i {
  position: absolute;
  top: 30%;
  right: 0.5rem;
  transform: translateY(-50%);
  cursor: pointer;
}

.p-3 {
  padding: 0px !important;
  margin-top: 20px;
}

.sort-indicator {
  font-size: 0.7em;
  color: #999;
  margin-left: 4px;
}

.nav-tabs .nav-link {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.btn {
  font-size: 14px;
  height: 46px;
  box-shadow:
    0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14),
    0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.btn:hover {
  box-shadow:
    0px 3px 3px -2px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14),
    0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}

tr {
  border-bottom: 1px solid #c6c8b9;
}

.sidebar-menu-items li.active-menu a {
    background-color: #D6EB9C;
    border-radius: 12px;
    display: block;
    padding: 10px; /* adjust padding as needed */
}

.bi-arrow-right {
  font-size: 24px;
}

.tab-pane {
  font-size: 13px;
}
