/* Header Meta Box */
.iqt-header-meta-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.iqt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.iqt-logo-section {
    flex: 0 0 auto;
}

.iqt-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.iqt-meta-top {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.iqt-meta-title {
    font-size: 22px;
    font-weight: bold;
    color: #6C0F2A;
}

.iqt-header-row2 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.iqt-header-row2 > div {
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 5px;
}

.iqt-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* Buttons */
.iqt-meta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.iqt-meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pdf-btn {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

.pdf-btn:hover:not(:disabled) {
    background: #c0392b;
}

.pdf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.retry-btn {
    background: #3498db;
    color: white;
}

.retry-btn:hover {
    background: #2980b9;
}


.iqt-desc-title {
    font-size: 20px;
    font-weight: bold;
    color: #6C0F2A;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.iqt-desc-section {
    margin-bottom: 20px;
}

.iqt-desc-section p {
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 10px;
}



/* Responsive */
@media (max-width: 768px) {
    .iqt-header-row {
        gap: 15px;
    }
    
    .iqt-meta-title {
        font-size: 18px;
    }
    
    .iqt-header-row2 {
        flex-direction: column;
    }
    
    .iqt-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    
    .iqt-meta-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}



/* Loader Animation */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.iqt-header-meta-box {
    width: 98%;
    border: 1.5px solid #f5e7ce;
    max-width: 880px;
    margin: 0px auto 10px auto;
    padding: 18px 20px;
    background: #f9f6f2;
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(44, 62, 80, 0.05);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
}

.iqt-meta-top {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 16px;
    color: #444;
}

.iqt-meta-top div {
    min-width: 120px;
    font-weight: 500;
    text-align: center;
}

.iqt-meta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.iqt-meta-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    color: #fff;
}

.pdf-btn {
    position: relative;
    min-width: 200px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pdf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pdf-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-text {
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل‌های اضافی برای بهتر نمایش */
.iqt-meta-btn {
    margin: 10px;
    padding: 12px 24px;
}

.pdf-btn:hover {
    background: #d94772;
}

.retry-btn {
    background: #5b9df4;
}

.retry-btn:hover {
    background: #3a86dc;
}

.iqt-header-row, .iqt-header-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
}

.iqt-logo-section {
    flex-basis: 20%;
    display: flex;
    justify-content: center;
}

.iqt-logo {
    max-width: 65px;
    height: auto;
}

.iqt-meta-title {
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ad8125;
}

.iqt-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    opacity: 0.85;
}





.iqt-level-table-box {
    background: #fff;
    padding: 22px 16px;
    margin-top: 24px;
    border-radius: 18px;
    border: 1.5px solid #f0e6d6;
    box-shadow: 0 4px 18px rgba(44, 62, 80, 0.04);
    font-family: inherit;
    direction: rtl;
}

@media (max-width: 600px) {
    .iqt-header-row {
        gap: 8px;
        align-items: flex-start;
    }
     .iqt-header-row2 {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .iqt-logo-section {
        flex-basis: auto;
    }
    .iqt-logo {
        max-width: 45px;
    }
    .iqt-meta-top {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }
    .iqt-meta-buttons {
        flex-direction: column;
    }
    .iqt-meta-btn {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
 
}



