/**
 * AI Kompas Block Styles
 */

/* Editor styles */
.ai-kompas-editor-preview {
    padding: 15px;
    border: 1px dashed #ccc;
    text-align: center;
    background-color: #f8f9fa;
}

.ai-kompas-editor-preview h3 {
    color: #5D5CDE;
    margin-bottom: 8px;
}

/* Frontend iframe styles */
.ai-kompas-iframe {
    width: 100%;
    min-height: 1000px;
    border: none;
    overflow: hidden;
}

.ai-kompas-container {
    background: #E8F6F6;
    border-radius: 4px;
    padding: 36px 36px;
    margin: 0 auto 30px auto;
    max-width: 700px;
}

.ai-kompas-container .option {
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgb(187, 186, 186);
    padding-top: 16px;
}

.ai-kompas-container .option label:only-child {
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.ai-kompas-container .option:hover {
    border-bottom: 1px solid #3f8680; 
    background-color: #f0eeee;
}


/* Radio button styling */
.ai-kompas-container .radio-btn {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-kompas-container .inner-circle {
    width: 12px;
    height: 12px;
    background-color: #3f8680;
    border-radius: 50%;
}



/* Result styling */
.ai-kompas-container .result-item {
    padding: 16px;
    border-radius: 8px;
    background-color: #f9fafb;
    margin-bottom: 16px;
}

/* Header styles */
#ai-kompas-title {
  color: #e54b33;
}



/* .ai-kompas-subtitle {
    font-size: 1.125rem;
} */

/* Question styles */

.question-container {
  background: white;
  padding: 15px;
  border-radius: 4px;
}
#question-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* .ai-kompas-question-description {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
} */

/* Button styles */
.ai-kompas-prev-btn {
    padding: 0.625rem 1.25rem;
    background-color: #e5e7eb;
    color: #4b5563;
    border-radius: 24px;
}

.ai-kompas-prev-btn:hover {
    background-color: #d1d5db;
}

.dark .ai-kompas-prev-btn {
    background-color: #374151;
    color: #d1d5db;
}

.dark .ai-kompas-prev-btn:hover {
    background-color: #4b5563;
}

.ai-kompas-next-btn {
    padding: 0.625rem 1.25rem;
    background-color: #54b6aa;
    color: white;
    border-radius: 24px;
}

.ai-kompas-next-btn:hover {
    background-color: #3f8680;
}

.ai-kompas-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results styles */
.ai-kompas-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-kompas-results-intro {
    margin-bottom: 1.5rem;
}

.ai-kompas-restart-btn {
    padding: 0.625rem 1.25rem;
    background-color: #54b6aa;
    color: white;
    border-radius: 24px;
}

.ai-kompas-restart-btn:hover {
    background-color: #3f8680;
}

.progress-bar-outer {
    width: 100%;width: 100%;
    background-color: #e5e7eb; /* equivalent to bg-gray-200 */
    border-radius: 9999px; /* fully rounded */
    height: 0.625rem;
    margin-bottom: 1.5rem;
}

.progress-bar-inner {
  background-color: #777778;
  height: 0.625rem;
  border-radius: 9999px;
  width: 0%
}


/* MEDIA QUERIES */

@media (max-width: 767px) {
    .ai-kompas-iframe {
        min-height: 900px;
    }
    .ai-kompas-container {
        padding: 36px 15px;
    }
}


@media (max-width: 640px) {
    .ai-kompas-container .flex.justify-between {
        flex-direction: column;
    }
    
    .ai-kompas-container #prev-btn,
    .ai-kompas-container #next-btn {
        margin: 4px 0;
    }
}

@media print {
    .question-container,
    .ai-kompas-iframe,
    .ai-kompas-prev-btn,
    .ai-kompas-next-btn,
    header,
    footer,
    .no-print {
        display: none !important;
    }

    @page {
        margin-top: 2cm !important;
        margin-bottom: 2cm !important;
    }

    #results-container {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        margin-top: 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .page-break {
        page-break-before: always !important;
        break-before: always !important;
    }

    main, body, html, .print-this {
        margin: 0 !important;
        padding: 0 !important;
    }
    body {
        background: #fff !important;
    }
}