/*
    Green for dark mode:  #4DC5B3
    Orange for dark mode: #f8a71e
    Red for dark mode: #e91e63
*/
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px; /* was 16px */
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
  position: relative;
  height: 100%;
  margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.pan-menubar {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    height: 100%;
}

.pan-body {
    flex: 1 1 auto;
    min-width: 0;
/*    width: 100%;
    height: 100%;
*/}

.pan-question-heading {
    --bs-alert-padding: 0;
    --bs-alert-margin-bottom: 0;
}

.main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sidebar {
    width: 55px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.sidebar i {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.page-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

header, footer {
    background-color: #363640;
    color: white;
    flex: 0 0 auto;
}

.footer {
    position: static !important;
}

.child-page-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-content-fill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* DataExtreme Date Range (start) */

.demo-container {
    height: 690px;
}

.dx-field {
    padding: 8px;
}

.selected-days-wrapper {
    font-size: 12px;
    opacity: 0.5;
}

.multiline-label {
    padding-top: 0;
}

/* Data Extreme Date Range (end) */

/* DevExtreme Tabs */

.widget-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    min-width: 200px;
    overflow: visible;
    padding-top: 20px;
}

.widget-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
/*    gap: 80px;
*/    width: 100%;
}

.widget-wrapper-vertical {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

/* Custom Grid Handling */

.pan-expanded-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pan-expanded-grid .grid {
    flex: 1 1 auto;
    min-height: 0;
}

.grid-panel,
.grid-actions {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.wrap-column-150 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 150px;
}

.wrap-column-200 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 200px; /* Enforce max width */
}

.dx-datagrid .wrap-text {
    white-space: pre-wrap !important;
    word-break: break-word;
    line-height: 1.35;
}

/* Summary Section */

.pan-summary-section div.row {
    background-color: #2A2A2D;
    border-style: solid;
    border-width: thin;
    border-color: Gray;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.pan-summary-section div.row:last-of-type {
    border-bottom: solid thin;
}

.pan-summary-section .value-cell {
    color: #03A9F4;
/*    color: #66C798;*/
    padding-left: 0px;
}

/* Blade Modals */

.blade-modal {
    position: fixed;
    top: 60px; /* Adjust to match your header height */
    right: 0;
    width: 800px;
    height: calc(100% - 120px); /* 60px header + 60px footer */
    background: var(--bs-body-bg);
    color: #4DC5B3;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    overflow-y: auto;
    padding: 0px;
    display: none;
}

.blade-modal-header {
    width: 100%;
    background: #363640;
    color: #4DC5B3;
    font-size: larger;
    font-weight: bolder;
    margin: 0px;
    padding: 15px;
}

.blade-modal-body {
    padding: 15px;
}

.blade-modal-footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 15px;
    text-align: right;
    background: #363640;
}

.blade-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 800px);
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    display: none;
}

/* Home Page Card Container */

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #363640 /* #1a2c45*/;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.card i {
    font-size: 30px;
    color: #f8a71e;
    margin-bottom: 10px;
}

.card h3 {
    color: #f8a71e;
    margin: 10px 0 10px;
}

.card p {
    color: #ffffff;
    line-height: 1.4;
}


/* Survey Designer */

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Stepper - Wizard-style pages */

.stepper {
    display: flex;
    height: 195px;
    gap: 20px;
    margin-bottom: 40px;
}

.stepper-label {
    font-size: 30px;
    color: #f8a71e;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stepper-wrapper {
    width: 100%;
}
