/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
}

.ms-welcome__header {
  padding: 20px;
  padding-bottom: 10px;
  padding-top: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: center;
}

.ms-welcome__main {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 1 0 0;
  flex: 1 0 0;
  padding: 10px 20px;
}

.ms-welcome__main > h2 {
  width: 100%;
  text-align: center;
}

.ms-welcome__features {
  list-style-type: none;
  margin-top: 10px;
}

.ms-firstrun-instructionstep__header {
  padding-left: 20px;
}

.ms-firstrun-instructionstep__welcome-body {
  padding-left: 20px;
}

.ms-firstrun-instructionstep__list {
  padding-left: 20px;
}

.ms-welcome__features.ms-List .ms-ListItem {
  padding-left: 20px;
  padding-bottom: 10px;
  display: -webkit-flex;
  display: flex;
}

.ms-welcome__features.ms-List .ms-ListItem > .ms-Icon {
  margin-right: 10px;
}

.ms-welcome__action.ms-Button--hero {
  margin-top: 30px;
}

.ms-Button.ms-Button--hero .ms-Button-label {
  color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label {
  color: #005a9e;
  cursor: pointer;
}

b {
  font-weight: bold;
}

.ms-Button--primary {
  background-color: #00aa5b; /* Fluent UI primary blue */
  color: white; /* White text color for better readability */
  border: none; /* Optional: removes any border */
  padding: 8px 16px; /* Optional: adds some padding */
  border-radius: 4px; /* Optional: adds some border radius */
  cursor: pointer; /* Optional: adds a pointer cursor */
  width: 90%; /* Optional: makes the button full width */
}

.ms-Button--primary:hover,
.ms-Button--primary:focus {
  background-color: #5f7e6d; /* A darker blue for hover/focus states */
  color: white;
}

.disabled-button {
  background-color: #cccccc; /* Light grey background */
  color: #666666; /* Darker grey text */
  cursor: not-allowed; /* Not-allowed cursor */
  pointer-events: none; /* Disable all pointer events */
  border: 1px solid #999999; /* Border to match the disabled state */
}

.full-width {
  width: 100%;
}

.bottom-margin-min {
  margin-bottom: 10px;
} /* Adds space between elements */

.dropdown-container {
  margin-bottom: 30px; /* Space between dropdown menus */
}

.ms-Dropdown {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.input-container {
  margin-bottom: 15px; /* Space between input fields */
}

.switch-container {
  margin-bottom: 30px; /* Space between switch controls */
}

#post-login-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.middle-section {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  background-color: #00aa5b;
  box-shadow: #666 0px 0px 5px;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  color: #ffffff;
}
.tab.active {
  border-bottom: 3px solid #ffffff;
  font-weight: bold;
  background-color: #145638;
}
.tab-content {
  flex: 1;
  padding: 20px;
  display: none;
}
.tab-content.active {
  display: block;
}
.footer {
  padding: 10px;
  background-color: #f3f2f1;
  text-align: center;
}
.user-info {
  margin-top: 10px;
  font-size: 10px;
  color: #666;
  text-align: center;
}
.app-info {
  margin-top: 10px;
  font-size: 10px;
  color: #666;
  text-align: left;
}
.functionality-section {
  margin-bottom: 20px;
}

/* Custom styles for Select2 */
.select2-container .select2-selection--single {
  height: 34px;
  border-radius: 4px;
  border: 2px solid #ddd;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px; /* Align text vertically */
  padding-left: 10px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}
.select2-results__option {
  padding: 10px;
}

.hidden {
  display: none;
}

/* Modal styles */
#modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

#modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  width: 80%; /* Adjust width as needed */
  max-width: 600px;
}

/* Progress bar styles */
.progress-bar-container {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 5px;
  margin-top: 10px;
  height: 5px;
  display: none; /* Initially hidden */
  overflow: hidden; /* Ensure it doesn't spill over */
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4caf50;
  border-radius: 5px;
}

/* Spinner styles */
#spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00aa5b;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Custom Checkbox Styles */
.form-check-input {
  position: relative;
  width: 20px; /* Set checkbox size */
  height: 20px; /* Set checkbox size */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #ccc;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: background 0.4s;
}

.form-check-input:checked {
  background-color: #00aa5b;
}

.form-check-input:checked:before {
  content: "\2713";
  display: block;
  text-align: center;
  color: white;
  font-size: 14px;
  line-height: 20px;
}

.form-check-label {
  margin-left: 8px;
  cursor: pointer;
}
