/* * استایل‌های اصلی افزونه پورتال کاربری
 * فونت ایران یکان باید از طریق قالب یا افزونه دیگری روی سایت شما فعال باشد
*/

body {
    /* font-family: 'IRANYekan', sans-serif; */ /* این خط را در صورتی فعال کنید که فونت در جای دیگری لود نشده باشد */
}

.pk-auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.pk-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.pk-tab-link {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    text-decoration: none;
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.pk-tab-link.active {
    color: #333;
    border-bottom-color: #0073aa;
}

.pk-tab-content {
    display: none;
}

.pk-tab-content.active {
    display: block;
}

.pk-form-row {
    margin-bottom: 20px;
}

.pk-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.pk-form-row input[type="text"],
.pk-form-row input[type="email"],
.pk-form-row input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.pk-form-row input:focus {
    outline: none;
    border-color: #0073aa;
}

.pk-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #0085ba;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pk-submit-btn:hover {
    background-color: #0073aa;
}

.pk-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.pk-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pk-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pk-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.pk-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0085ba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* === استایل‌های داشبورد کاربری === */

.pk-dashboard-wrapper {
    display: flex;
    direction: rtl;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 30px auto;
    font-family: 'IRANYekan', sans-serif; /* اطمینان از اعمال فونت */
}

/* منوی کناری */
.pk-dashboard-sidebar {
    flex: 0 0 250px; /* عرض ثابت 250 پیکسل */
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pk-sidebar-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.pk-sidebar-header h3 {
    margin: 0 0 5px;
}
.pk-sidebar-header p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.pk-dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pk-dashboard-menu li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.pk-dashboard-menu li a:hover {
    background-color: #e9e9e9;
}

.pk-dashboard-menu li.active a {
    background-color: #0085ba;
    color: #fff;
    font-weight: bold;
}

/* محتوای اصلی */
.pk-dashboard-content {
    flex-grow: 1; /* باقی فضا را اشغال کند */
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* استایل‌های بخش پرسش و پاسخ */
.pk-qa-container h3 {
    border-bottom: 2px solid #0085ba;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.pk-qa-container h3:first-child {
    margin-top: 0;
}

.pk-new-question-form {
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pk-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.pk-questions-list {
    margin-top: 40px;
}

.pk-question-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.pk-question-header {
    background-color: #f7f7f7;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.pk-question-status {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    color: #fff;
}

.pk-question-status.pending {
    background-color: #ffb900; /* زرد */
}

.pk-question-status.answered {
    background-color: #4CAF50; /* سبز */
}

.pk-question-content {
    padding: 15px;
}

.pk-question-content p {
    margin: 0 0 10px;
}

.pk-answer-content {
    background-color: #e7f5ff;
    border-right: 4px solid #0085ba;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px !important;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .pk-dashboard-wrapper {
        flex-direction: column;
    }
    .pk-dashboard-sidebar {
        width: 100%;
        flex: 0 0 auto;
    }
}
/* === استایل‌های بخش آپلود مدارک === */

.pk-docs-container h3 {
    border-bottom: 2px solid #0085ba;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.pk-docs-container h3:first-child {
    margin-top: 0;
}

.pk-new-doc-form {
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pk-form-row input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.pk-docs-list {
    margin-top: 40px;
}

.pk-doc-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.pk-doc-header {
    background-color: #f7f7f7;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.pk-doc-status {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}

.pk-doc-status.در-انتظار-بررسی { background-color: #ffb900; }
.pk-doc-status.تایید-شد { background-color: #4CAF50; }
.pk-doc-status.نیاز-به-اصلاح { background-color: #f44336; }
.pk-doc-status.رد-شد { background-color: #607d8b; }


.pk-doc-content {
    padding: 15px;
}

.pk-doc-content p {
    margin: 0 0 10px;
}
/* === استایل‌های بخش اطلاعیه‌ها === */

.pk-notifications-container {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 20px;
    background-color: #f0f8ff; /* AliceBlue */
    border: 1px solid #d6e9f8;
    border-radius: 12px;
    direction: rtl;
}

.pk-notifications-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #005a8d;
    display: flex;
    align-items: center;
}
.pk-notifications-container h4 .dashicons {
    margin-left: 8px;
}

.pk-notification-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pk-notification-item.public {
    background-color: #e7f5ff;
    border-left: 4px solid #0085ba;
}

.pk-notification-item.private {
    background-color: #e8f5e9; /* Light Green */
    border-left: 4px solid #4CAF50;
}

.pk-notification-item strong {
    display: block;
    margin-bottom: 8px;
}

.pk-notification-item p,
.pk-notification-item div {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.pk-attachment-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s;
}
.pk-attachment-link:hover {
    background-color: #005a8d;
}

.pk-private-notifications {
    margin-top: 20px;
}
/* === استایل‌های بخش ویرایش پروفایل === */
.pk-profile-form .pk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pk-profile-form h3 {
    border-bottom: 2px solid #0085ba;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.pk-profile-form input[disabled] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .pk-profile-form .pk-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Widget Styles */
.pk-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0073aa; /* رنگ آبی وردپرس */
    color: white;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9998;
}
.pk-floating-btn:hover {
    background-color: #005a87;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    color: white;
}
.pk-floating-icon {
    width: 30px;
    height: 30px;
    background-color: white;
    color: #0073aa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-left: 8px;
}
.pk-floating-text {
    font-weight: bold;
    padding-right: 10px;
}

/* Modal Styles */
.pk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}
.pk-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 8px;
}
.pk-modal-close {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 30px;
    color: #aaa;
    text-decoration: none;
    line-height: 1;
}
.pk-modal-close:hover {
    color: #333;
}
.pk-modal-content .pk-guest-consult-form {
    margin-top: 15px;
}