/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 /* General Form Styling */
 .wdm-site-details-form {
  width: 97%;
  font-size: 14px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.wdm-form-field {
  margin-bottom: 10px;
}

.wdm-label {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.wdm-input {
  width: 98%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.wdm-submit-btn {
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.wdm-submit-btn:hover {
  background-color: #005bb5;
}

/* Success and Error Messages */
.wdm-success-message {
  color: green;
  font-size: 16px;
  margin-top: 15px;
}

.wdm-error-message {
  color: red;
  font-size: 16px;
  margin-top: 15px;
}


table#wdm-datatable tr th, table#wdm-datatable tr td{
  max-width:0px !important;
}

#wdm-datatable {
  font-size: 14px;
}

.search-row input{
  max-width:105% ;
}
#wdm-datatable tr.search-row .dt-column-order{
  display:none !important;
}

#wdm-datatable_wrapper .dt-length {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
#wdm-datatable_wrapper .dt-length .dt-input{
  margin-top:5px !important;
}

#wdm-datatable_wrapper .dt-search {
  display:flex;
  
}

#wdm-datatable_wrapper tr.search-row input{
  padding:5px !important;
}

/* popup */
.wdm-popup-content {
  font-family: Arial, sans-serif;
  max-height: 50vh; /* Limit the popup height to 70% of the viewport */
  overflow-y: auto; /* Enable scrolling if content overflows */
  padding: 20px;
  padding-right: 40px;
  box-sizing: border-box;
}

.wdm-popup-title {
  text-align: center;
  margin-bottom: 20px;
}

.wdm-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.wdm-input-group {
  flex: 1;
}

.wdm-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.wdm-input-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.wdm-popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.wdm-popup-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#wdm-cancel-popup {
  background-color: #ccc;
}

#wdm-confirm-popup {
  background-color: #28a745;
  color: white;
  padding: 10px;
}

.popup-body {
  text-align: start !important;
}


.wdm-edit-popup .popup-title {
  margin-top: 0.5em;
}

.popup.wdm-edit-popup .popup-content .popup-header {
  margin-bottom:0px;
}

.popup.wdm-edit-popup .wdm-popup-content {
  padding-bottom:0px;
  padding-top:0px;
}

.disabled-button {
cursor: not-allowed !important; /* This will display the 'not allowed' cursor */
}

.wdm-delete-popup-buttons{
display:flex;
align-items:center;
justify-content:space-around;
gap:20px;

}

#wdm-delete-yes{
background-color:#ff5555;
padding:10px;
width:100px;
}

#wdm-delete-no{
background-color:#7aff7d;
padding:10px;
width:100px;
}

.popup.wdm-delete-popup .popup-content{
width:40% !important;
}
.popup.wdm-delete-popup .popup-title{
margin-top:0.5em;
}

.dataTable td {
word-break: break-word;
}

.dt-container .dt-layout-row {
font-size: 16px;
}

p.wdm-form-field.wdm-form-single-line {
display:flex;
align-items:center;
margin:30px 0px;
margin-top:15px;
gap:5px;


}
.wdm_team_edit_dropdown{
width:50%;
height:30px;
border-radius:5px;
border-color:#cccccc
}
.wdm_team_edit_dropdown:focus{
border-color:black;
}
p.wdm-form-field.wdm-form-single-line label{
margin:0px;
}
#wdm_add_project_tracking_time, #wdm_add_git_repo, #wdm_add_sonar, #wdm_add_spinup{
width:max-content;
}


@media only screen and (max-width: 768px) {
p.wdm-form-field.wdm-form-single-line {
    align-items:start;
}
}

.wdm-disabled-label{
color:gray;
cursor:not-allowed;
}
.wdm-disabled-checkbox{
cursor:not-allowed;
}

.wdm-disabled-input{
cursor:not-allowed;
background-color:#e3e3e3;
}
select#wdm_team_name {
  width:100%;
}
select#wdm_sme_name {
  width:100%;
}

/* Initial state of the button */
.wdm-copy-button {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Animation when the button is clicked */
.wdm-copy-button.copied {
  animation: copiedAnimation 0.5s ease-out;
}

@keyframes copiedAnimation {
  0% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(1.2);
    color: #4CAF50; /* Change to your desired color */
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}
i.fa-solid.fa-copy.wdm-copy-button {
  margin-left:5px;
  border:solid 2px;
  border-radius:3px;
  padding:2px;
  color:#7066e0
}
i.fa-solid.fa-copy.wdm-copy-button:hover {
  margin-left:5px;
  border:solid 2px;
  border-radius:3px;
  padding:2px;
  color:#5346e6
}

.wdm-spinup-settings-container {
  display:flex;
  flex-wrap:wrap;
  padding:10px 30px;
  border:solid #9a9a9a 2px;
  border-radius:15px;
  background-color:#ebebeb
}
.wdm-spinup-settings{
  width:100%;
  font-weight:bold;
  font-size:16px;
  
}
.wdm-spinup-settings-container .wdm-form-field{
  flex:1;
}
.wdm-spinup-settings-container {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  display: flex; /* Default display */
}
.hidden {
  opacity: 0;
}

.wdm-popup-content select{
  width:100%
}
.wdm-popup-content input{
  width:94%
}

td.wdm-action-buttons button{
  margin:3px;
  width:30px;
}

/* Styles for create link buttons in edit popup */
.wdm-create-link-btn {
  margin-top: 5px;
}

.wdm-create-link {
  background-color: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.wdm-create-link:hover {
  background-color: #135e96;
}

.wdm-create-link.disabled-button {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Fix for input field display when toggling between input and button */
.wdm-input-group {
  min-height: 70px;
}

/* Styles for Spinup settings modal */
.wdm-modal {
  display: none;
  position: fixed;
  z-index: 100000; /* Significantly higher z-index to ensure it's above everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.wdm-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 50%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wdm-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.wdm-modal-close:hover,
.wdm-modal-close:focus {
  color: #555;
  text-decoration: none;
}

.wdm-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.wdm-modal .wdm-input-row {
  margin-bottom: 15px;
}

.wdm-modal .wdm-select,
.wdm-modal input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.wdm-domain-note {
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

#domain-preview {
  font-weight: bold;
  color: #2271b1;
}

#wdm-spinup-create-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#wdm-spinup-create-btn:hover {
  background-color: #135e96;
}

#wdm-spinup-create-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.wdm-input-group .wdm-create-link{
  background-color: black;
  padding:10px;
  font-size:14px;
  width:100% !important
}

button#wdm-spinup-create-btn {
  background-color:black;
}

.wdm-create-link:hover {
  background-color:#1d1d1d !important;
}

span#domain-preview {
  color:black;
}

.wdm-modal-header {
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}
.wdm-modal-header h3{
  margin-bottom:0px;
}