.rap-test-block {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        background-color: #F8F9FA !important;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rap-test-block h2 {
    color: #1a202c;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding-bottom: 10px !important;
}

.shadow-lg {
   box-shadow: none!important;
}

#rap-test-type {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

#rap-execute-test {
    background: linear-gradient(to right, rgb(37, 99, 235), rgb(79, 70, 229));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#rap-execute-test:hover {
    background-color: #1d4ed8;
}

.rap-config-links {
    display: flex;
    justify-content: end;
    margin-top: 0px;
    gap: 13px;
}

.ra-tab-content .mb-4 {
    margin-bottom: 0.5rem!important;
}

.rap-config-form {
    display: flex;
    align-items: center;
    color: #303030;
    text-decoration: none;
    font-size: 12px;
    background-color: #eaecef;
    padding: 5px 10px;
    border-radius: 6px;
}
.rap-config-form:hover {

background-color: #edf4ff;
}
.rap-config-form svg {
    width: 13px;
    height: 13px;
    margin-right: 4px;
}

#rap-test-result {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    color: #4b5563;
    min-height: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

#rap-test-result h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rap-test-result h3 svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.text-lg.font-semibold.text-gray-800.mb-3.flex.items-center.justify-center,
.text-xl.font-semibold.text-gray-800.mb-4.flex.items-center {
    justify-content: center !important;
    margin-bottom: 12px !important;
}

#rap-test-result .result-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

#rap-test-result .result-icon svg {
    width: 48px;
    height: 48px;
    color: #3b82f6;
}

.text-gray-500.text-center {
    text-align: center !important;
}

.text-gray-500.text-center.text-sm {
    text-align: center !important;
}

#rap-test-result p {
    font-size: 14px;
}

.rap-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.rap-popup-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rap-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.rap-popup-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1a202c;
}

.rap-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
}

.rap-popup-body {
    padding: 20px;
}

.rap-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rap-form-group {
    flex: 1;
    display: flex;
    align-items: center;
}

.rap-form-group label {
    width: 100px;
    margin-left: 20px;
    margin-right: 10px;
    color: #4b5563;
    font-size: 12px;
}

.rap-form-group input[type="text"] {
    flex: 1;
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
}

.rap-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    position: sticky;
    bottom: 0;
    background-color: white;
}

.rap-save-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.rap-save-btn:hover {
    background-color: #1d4ed8;
}

.loading-animation {
    width: 100%;
    height: 4px;
    background-color: #f3f4f6;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.loading-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: #3b82f6;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.result-icon svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.relative.top-20.mx-auto.p-5.border.w-96.shadow-lg.rounded-md.bg-white {
    display: none;
}

.w-16.h-16.text-blue-500 {
    width: 27px;
    height: 27px;
}

.flex.items-center.justify-center.h-32.mb-3 {
    margin-top: 124px;
    margin-bottom: 10px;
}

.text-gray-800.chatbot-response.text-left p {
    text-align: left !important;
}

.rap-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border: 1px solid white !important;
    border-radius: 4px !important;
    background-color: white !important;
    color: #dc3545 !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.rap-reset-btn:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.rap-reset-btn:active {
    transform: scale(0.98) !important;
}

.rap-reset-btn::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    transition: all 0.2s ease-in-out !important;
}

.rap-reset-btn:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") !important;
}

.riskass-chatbot-id {
    font-size: 12px !important;
    color: #303030 !important;
}