/* Scoped styles to avoid site/plugin conflicts */

.nexus-chemist-phnexus-container .question-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.nexus-chemist-phnexus-container .question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background-color: #093A6E;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.nexus-chemist-phnexus-container .question-text {
    flex: 1;
}

.nexus-chemist-phnexus-container .question-text label {
    font-weight: bold;
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
}

.nexus-chemist-phnexus-container .question-text p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Styles for question image and video preview */

.nexus-chemist-phnexus-container .question-image-preview {
    display: block;
    max-width: 250px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.nexus-chemist-phnexus-container .question-video-preview {
    display: block;
    max-width: 350px;
    max-height: 240px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.nexus-chemist-phnexus-container .question-audio-preview {
    display: block;
    width: 100%;
    max-width: 350px;
    margin-top: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px 0;
}
/* Style for image and video file input fields */
.nexus-chemist-phnexus-container .question-image-input,
.nexus-chemist-phnexus-container .question-video-input,
.nexus-chemist-phnexus-container .form-control,
.nexus-chemist-phnexus-container .nexus-select,
.nexus-chemist-phnexus-container .nexus-multiselect,
.nexus-chemist-phnexus-container textarea {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border: 1px solid #bfc9d7;
    border-radius: 6px;
    background: #f8fafc;
    color: #333;
    font-size: 15px;
    width: 100%;
    max-width: 350px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nexus-chemist-phnexus-container .question-image-input:focus,
.nexus-chemist-phnexus-container .question-video-input:focus,
.nexus-chemist-phnexus-container .form-control:focus,
.nexus-chemist-phnexus-container .nexus-select:focus,
.nexus-chemist-phnexus-container .nexus-multiselect:focus,
.nexus-chemist-phnexus-container textarea:focus {
    border-color: #093A6E;
    outline: none;
    background: #eef6fb;
}
/* Custom select styling */
.nexus-chemist-phnexus-container .nexus-select {
    width: 100% !important;
    max-width: 350px !important;
    min-width: 0 !important;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
    cursor: pointer;
}

.nexus-chemist-phnexus-container .nexus-select:focus {
    border-color: #093A6E;
    outline: none;
    background-color: #eef6fb;
}

.nexus-chemist-phnexus-container .nexus-select option {
    padding: 8px 12px;
    background-color: #fff;
    color: #333;
}

/* Multi-select styling */
.nexus-chemist-phnexus-container .nexus-multiselect {
    height: auto !important;
    min-height: 38px;
    padding: 4px 8px !important;
}

.nexus-chemist-phnexus-container .nexus-multiselect option {
    padding: 8px 12px;
}

.nexus-chemist-phnexus-container .nexus-multiselect option:checked {
    background-color: #eef6fb;
    color: #093A6E;
    font-weight: 500;
}

/* For browsers that support it, add some nicer styling */
@supports (accent-color: #093A6E) {
    .nexus-chemist-phnexus-container .nexus-multiselect {
        accent-color: #093A6E;
    }
}

/* Button styling */
.nexus-chemist-phnexus-container [type="button"],
.nexus-chemist-phnexus-container [type="submit"],
.nexus-chemist-phnexus-container button {
  display: inline-block;
  font-weight: 400;
  color: var(--nexus-chemist-phnexus-color);
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid var(--nexus-chemist-phnexus-color);
  padding: .5rem 1rem;
  font-size: 1rem;
  border-radius: 3px;
  transition: all .3s;
}

.nexus-chemist-phnexus-container [type="button"]:focus,
.nexus-chemist-phnexus-container [type="button"]:hover,
.nexus-chemist-phnexus-container [type="submit"]:focus,
.nexus-chemist-phnexus-container [type="submit"]:hover,
.nexus-chemist-phnexus-container button:focus,
.nexus-chemist-phnexus-container button:hover {
  color: #fff;
  background-color: var(--nexus-chemist-phnexus-color);
  text-decoration: none;
}