/* =======================
   Opaix Theme – Corporate Design
   ======================= */

html, body {
  font-family: 'Poppins', sans-serif !important;
  background-color: #071c42 !important;
  color: white !important;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1 0 auto;
}

header {
  background-color: #071c42;
  color: white;
  padding: 20px 0;
  border-bottom: 4px solid #3dcab1;
}

header img.sc4eu {
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0px 0px 7px 6px rgba(170, 170, 170, .80);
	background-color: #fffefebd;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: white;
  text-shadow: none !important;
}

h1 small {
  color: white !important;
}

#logos img {
  height: 40px;
  margin-left: 10px;
  vertical-align: middle;
}

/* =========================================
   Footer
   ========================================= */

footer > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

footer #footer-containers #contact,
footer #footer-containers #quick-links,
footer #footer-containers #infos {
  display: flex;
  flex: 1;
  width: 50%;
  padding: 50px;
  box-sizing: border-box;
  align-content: space-around;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 150px;
}

footer #footer-containers #contact-phone,
footer #footer-containers #contact-mail {
  display: flex;
  flex: 1;
  box-sizing: border-box;
  align-items: center;
  flex-direction: row;
  margin-top: 15px;
}

footer #footer-containers .contact-phone-icon svg,
footer #footer-containers .contact-mail-icon svg {
  width: 40px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

footer #footer-containers #contact p,
footer #footer-containers #infos p {
  max-width: 400px;
  margin-bottom: 0px;
}

footer .copyright {
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* =========================================
   Buttons & Submit Styling (General & Hover)
   ========================================= */

button,
.btn,
input[type="submit"],
.btn-primary,
#choose-file-button.btn.btn-primary {
  background-color: #3dcab1 !important;
  border-color: #3dcab1 !important;
  color: #00094c !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
.btn-primary:hover,
#choose-file-button.btn.btn-primary:hover {
  background-color: #c23a97 !important;
  border-color: #c23a97 !important;
  color: white !important;
}

.btn-default,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
  background-color: #3dcab1 !important;
  color: #00094c !important;
  border: none !important;
}

.btn-default:hover,
.btn-success:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-danger:hover {
  background-color: #c23a97 !important;
  color: white !important;
}

button,
.btn {
  background-color: #3dcab1 !important;
  color: #00094c !important;
}


/* =====================
   Card Design
   ===================== */

.card {
  background-color: #00094c !important;
  color: white !important;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 0 20px rgb(255, 255, 255);
}

.row-card .btn {
  background-color: #00094c !important;
  color: white !important;
  border: none !important;
}

.card * {
  color: white !important;
}

#session-stop-modal .modal-body *,
#session-stop-modal .modal-dialog .modal-header .modal-title {
  color: black !important;
}

/* =====================
   Form Elements
   ===================== */

input.form-control,
select.form-control,
textarea.form-control,
.card input.form-control,
.card select.form-control,
.card textarea.form-control {
  background-color: #00094c !important;
  color: white !important;
  border-color: #3dcab1 !important;
}

.voucher-request-modal {
  background-color: #00094c;
}

/* =====================
   Displaying Errors from user input
   ===================== */

.form-group.has-error .form-control {
  border-color: #ff5757 !important;
  box-shadow: none !important;
}

.form-control-feedback.glyphicon-remove,
.fail-icon.glyphicon-remove {
  color: #ff5757 !important;
}

.fail-help,
.fail-custom,
.help-block,
.card .help-block,
.card .fail-help,
.card .fail-custom {
  color: #ff5757 !important;
}

/* =====================
   Tables
   ===================== */

th,
th .rowHeader {
  background-color: #00094c !important;
  color: white !important;
  border-color: #3dcab1 !important;
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: unset;
}

.wtHolder {
  height: auto !important;
}

/* #cohort-area .table tbody tr td {
  color: black !important;
} */

.table .table {
  background-color: unset;
}

/* =====================
   Drop Area
   ===================== */
#drop-area {
  background-color: #00094c !important;
  color: white !important;
  border: 2px dashed #3dcab1 !important;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
}

#voucher-drop-zone {
  background-color: #00094c !important;
  color: white !important;
  border: 2px dashed #3dcab1 !important;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

#voucher-drop-zone:hover {
  background-color: #071c42 !important;
}

#voucher-file-name {
  color: #3dcab1 !important;
  font-size: 12px;
  transition: color 0.3s ease;
}

#voucher-file-name.success {
  color: #3dcab1 !important;
}

#voucher-file-name.error {
  color: #ff5757 !important;
}

/* =====================
   Footer adjustments
   ===================== */
footer {
  background-color: #3dcab1;
  color: #00094c;
  padding: 20px 0;
  flex-shrink: 0;
}

.footer-text li,
.footer-text p,
.footer-text a {
  color: #00094c !important;
}

/* =====================
   Deactivating shading 
   ===================== */
#shadow,
.shadow-top {
  display: none !important;
  box-shadow: none !important;
  border-top: none !important;
}

/* =====================
   Table-Arrow (Expand)
   ===================== */
#expand-table-button {
  display: inline-block;
  padding: 8px 12px;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#expand-table-button:hover {
  background-color: #00094c;
  border-color: #3dcab1;
}

/* =====================
   Login Button Deactivation (turn on if needed)
   This hides the login button on the main page.
   ===================== */

#login-button {
  display: none !important;
}

/* =====================
   Tooltip-Colors (Corporate Design)
   ===================== */

.qtip-yellow,
.qtip-yellow * {
  background-color: #fedc02 !important;
  color: black !important;
}

/* Example: Override old background color #fdfad0 (pale yellow) */
.qtip-yellow[style*="#fdfad0"],
.qtip-yellow[style*="rgb(253, 250, 208)"] {
  background-color: #fedc02 !important;
  color: black !important;
}

/* Red tones (e.g. error highlights) */
.qtip-red,
.qtip-red * {
  background-color: #ff5757 !important;
  color: white !important;
}

/* Example: Override old background color #FDD3D0 (pale red) */

.qtip-red[style*="#FDD3D0"],
.qtip-red[style*="rgb(253, 211, 208)"] {
  background-color: #ff5757 !important;
  color: white !important;
}

/* Icon color Invert (black to white) */

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  background-color: transparent;
  cursor: pointer;
}

#password + .form-control-feedback.glyphicon {
  color: white !important;
}

#toggle-password {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

#sessionID,
#passwordID,
#privkeyID {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ccc !important;
}

/* Session Details (white on black) */
#session-details pre {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ccc !important;
}

/* Teilnehmer-Abschnitt (dunkelblau mit weißer Schrift) */
#cohort-1 pre {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
}

#toggle-password {
  color: white !important;
}

#toggle-password::before {
  color: white !important;
}

button[id^="participants-submit-"] {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
  box-shadow: none !important;
  font-weight: bold;
}

button[id^="participants-submit-"]:hover {
  background-color: #3dcab1 !important;
  color: #00094c !important;
}

/*
button.ladda-button,
.ladda-button.btn,
.ladda-button.btn-primary,
.ladda-button.btn-block {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
  box-shadow: none !important;
  font-weight: bold;
  border-radius: 6px;
}

button.ladda-button:hover {
  background-color: #3dcab1 !important;
  color: #00094c !important;
}

*/

.ladda-button[disabled] {
  background-color: #3dcab1 !important;
  color: #00094c !important;
  border: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}


#session-details pre {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
}

input[readonly],
textarea[readonly],
input[disabled],
textarea[disabled] {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
  opacity: 1 !important; /* falls Bootstrap den Text grau macht */
}

pre[disabled],
pre.readonly {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
}

pre,
pre[disabled],
pre.readonly,
#participants-existing-0 {
  background-color: #00094c !important;
  color: white !important;
  border: 1px solid #3dcab1 !important;
}

/* Universelle Opaix-Button-Regel */
button,
button.btn,
.btn,
.btn-primary,
.btn-block,
.ladda-button,
button.ladda-button,
button.btn.btn-primary,
button.btn-block,
input[type="submit"] {
  background-color: #3dcab1 !important;
  color: #00094c !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus,
.btn-primary:hover,
.ladda-button:hover {
  background-color: #c23a97 !important;
  color: white !important;
}

button[disabled],
.btn[disabled],
.ladda-button[disabled] {
  background-color: #3dcab1 !important;
  color: #00094c !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.ladda-button,
.ladda-button.btn,
.ladda-button.btn-primary,
button.ladda-button,
button.ladda-button.btn-primary {
  background-color: #3dcab1 !important;
  color: #00094c !important;
  border: none !important;
  font-weight: bold !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.ladda-button:hover,
.ladda-button.btn:hover,
.ladda-button.btn-primary:hover,
button.ladda-button:hover,
button.ladda-button.btn-primary:hover {
  background-color: #c23a97 !important;
  color: white !important;
}
