.faq-entry {
    margin-top: 20px;
    background-color: #F9F9F9;
    border-radius: 20px;
    padding: 20px;
}

.toggle-question {
    font-weight: normal;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.toggle-question p {
    margin: 0; /* Remove default margin from the <p> element */
    font-size: 16px;
}

.toggle-question span {
    margin: 0; /* Remove default margin from the <p> element */
}

.toggle-answer {
    display: none;
    margin-top: 10px;
    font-size: 14px;
}

/* Styles for the new FAQ interface */
.dropZone {
    max-width: 100%;
    margin: 20px auto;
    padding: 40px;
    background-color: #f4f4f4;
    border-radius: 20px;
    border: 1px dashed #ccc;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dropZone:hover {
    border-color: #2361FF;
}

.fileUploadTitle {
    display: block;
    margin: 20px auto;
    font-size: 16px;
    color: #666;
}

.fileUploadSubTitle {
    margin: 10px 0;
    font-size: 14px;
    color: #999;
}

.webPageDiv {
    text-align: center;
    padding: 10px 0px;
    
}

.webPageEnter {
    margin: 0px 0px 10px 0px;
    width: 100%!important;
}

#csvFilename {
    margin: 10px 0;
    text-align: center;
}

#uploadCsvButton {
    display: none;
}

#faqWebPageError {
    margin-left: 10px;
    color: red;
}

.tips {
    background-color: #F9F9F9; 
    border-radius: 20px; 
    padding: 20px; 
    margin: 20px 0px;
}

/* Modal popup in FAQs google sheets import */
#errorModal.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#errorModal.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

#errorModal .modal-content {
    background-color: #fefefe;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
}

/* General modal styles for import mode modal */
.import-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.import-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-modal-content {
    background-color: #fefefe;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-width: 450px;
    margin: 0;
}

.import-modal-header {
    padding: 20px 25px 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.import-modal-header h3 {
    margin: 0;
    color: #333;
}

.import-modal-body {
    padding: 10px 25px;
}

.import-modal-footer {
    padding: 15px 25px 20px 25px;
    text-align: left;
}

.import-modal-close:hover {
    color: #000;
}

#importModeModal .import-modal-body input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#importModeModal .import-modal-body label {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    padding: 3px 0;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

#importModeModal .import-modal-body label::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    margin-left: 8px;
    position: relative;
    transition: all 0.2s ease;
}

#importModeModal .import-modal-body input[type="checkbox"]:checked + label::after {
    content: '✓';
    border: 2px solid #8B5CF6;
    background-color: #8B5CF6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    padding-right: 2px;
}

#importModeModal .import-modal-body span {
    font-size: 14px;
    color: #333;
}

#errorModal #errorContent {
    white-space: pre-line;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

#errorModal #errorContent strong {
    color: #d32f2f;
}

.csvUploadSubTitle {
    background-color: #E4DFF7; 
    border-radius: 10px;
    font-size: 14px;
    color: black;
    padding: 10px 25px;
}

.csvUploadSubTitle a {
    text-decoration: underline; 
    color: #2361FF;
}

.csvUploadSubTitle p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Error modal specific styles */
#errorModal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}