/*
    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 {
  position: relative;
  min-height: 100%;
  height: 100%;
  margin: 0;
}

body {
  margin-bottom: 60px;
  height: 100%;
  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: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 100%;
}

.pan-body {
    width: 100%;
    height: 100%;
}

.pan-question-heading {
    --bs-alert-padding: 0;
    --bs-alert-margin-bottom: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    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;
    overflow-y: auto;
    padding: 1rem;
}

header, footer {
    background-color: #363640;
    color: white;
}

/* 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: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    min-width: 200px;
    overflow: clip;
    padding-top: 20px;
}

.widget-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
}

.widget-wrapper-vertical {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

/* Custom Grid Handling */

.pan-expanded-grid {
    height: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.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 */
}

/* 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;
}

/* Home page accordion */

.feature-accordion {
    width: 400px;
    margin: 50px auto;
    margin-top: 100px;
    text-align: left;
}

.feature-accordion-button {
    background-color: #212529;
    font-weight: bold;
    color: #ccc;
    box-shadow: none;
    border: none;
}

.feature-accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.feature-accordion-button::after {
    content: "+";
    font-size: 20px;
    color: #999;
    transform: none;
    background-image: none;
}

.feature-accordion-button:not(.collapsed) {
    color: #4DC5B3;
    border-bottom: 2px solid #4DC5B3;
}

.feature-accordion-body {
    color: ccc;
    min-height: 60px;
    margin-bottom: 20px;
}

.feature-accordion-item {
    border: none;
/*    border-bottom: 1px solid #eee;
*/}

.feature-accordion-item:first-child .accordion-button {
    color: #4DC5B3;
    min-height: 80px;
}

.feature-accordion-item:first-child .accordion-body {
    padding-top: 0;
}

/* Survey Designer */

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
