/* ===== سامانه درخواست پروژه — تم تیره لیاما ===== */

:root {
    --edurm-bg: #000f26;
    --edurm-bg-panel: #0a1c3d;
    --edurm-bg-input: #071730;
    --edurm-border: #16294f;
    --edurm-text: #ffffff;
    --edurm-muted: #9fb0cc;
    --edurm-accent-1: #4f7cff;
    --edurm-accent-2: #9b5cff;
    --edurm-radius: 16px;
    --edurm-radius-sm: 10px;
    --edurm-radius-pill: 999px;
}

/* فونت سراسری پنل کاربری */
body.woocommerce-account,
body.woocommerce-account *,
.edurm-panel,
.edurm-panel * {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

/* پس‌زمینه اصلی صفحه حساب کاربری */
body.woocommerce-account {
    background: var(--edurm-bg);
}

body.woocommerce-account .woocommerce {
    color: var(--edurm-text);
    direction: rtl;
}

/* چیدمان کلی: سایدبار + محتوا شبیه کارت */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--edurm-bg-panel);
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius);
    padding: 24px;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 18px;
}

/* منوی سایدبار */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 13px 20px;
    border-radius: var(--edurm-radius-pill);
    color: var(--edurm-text);
    text-decoration: none;
    background: transparent;
    transition: background .2s ease, transform .15s ease;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(90deg, var(--edurm-accent-1), var(--edurm-accent-2));
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

/* عنوان صفحه با خط گرادیانی زیرش */
body.woocommerce-account .entry-header h1,
body.woocommerce-account .woocommerce-MyAccount-content > h1:first-child {
    color: var(--edurm-text);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--edurm-border);
}

body.woocommerce-account .entry-header h1::after,
body.woocommerce-account .woocommerce-MyAccount-content > h1:first-child::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 25%;
    min-width: 120px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--edurm-accent-1), var(--edurm-accent-2));
}

/* باکس خوش‌آمدگویی پیشخوان */
.edurm-welcome-box {
    background: linear-gradient(135deg, rgba(79,124,255,0.12), rgba(155,92,255,0.12));
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius);
    padding: 22px;
    margin-bottom: 20px;
}

.edurm-welcome-box h2 {
    margin: 0 0 8px;
    color: var(--edurm-text);
    font-weight: 700;
    font-size: 20px;
}

.edurm-welcome-box p {
    margin: 0;
    color: var(--edurm-muted);
    line-height: 1.9;
}

/* بخش‌های پنل درخواست/تیکت */
.edurm-panel {
    direction: rtl;
    text-align: right;
    color: var(--edurm-text);
}

.edurm-panel h2 {
    color: var(--edurm-text);
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--edurm-border);
}

.edurm-panel h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--edurm-accent-1), var(--edurm-accent-2));
}

.edurm-req {
    color: #ff7a7a;
}

/* فرم‌ها */
.edurm-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--edurm-text);
}

.edurm-form input[type="text"],
.edurm-form input[type="tel"],
.edurm-form input[type="file"],
.edurm-form select,
.edurm-form textarea {
    width: 100%;
    max-width: 640px;
    padding: 13px 16px;
    box-sizing: border-box;
    background: var(--edurm-bg-input);
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius-sm);
    color: var(--edurm-text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.edurm-form input:focus,
.edurm-form select:focus,
.edurm-form textarea:focus {
    border-color: var(--edurm-accent-1);
}

.edurm-form textarea {
    resize: vertical;
}

.edurm-form p {
    margin-bottom: 18px;
}

/* دکمه‌ها */
.edurm-form button.button,
.edurm-panel a.button,
.edurm-table a.button {
    background: linear-gradient(90deg, var(--edurm-accent-1), var(--edurm-accent-2));
    border: none;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--edurm-radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    text-decoration: none;
    transition: opacity .2s ease, transform .15s ease;
}

.edurm-form button.button:hover,
.edurm-panel a.button:hover,
.edurm-table a.button:hover {
    opacity: 0.9;
}

/* جدول درخواست‌ها */
.edurm-table-wrap {
    overflow-x: auto;
    border-radius: var(--edurm-radius-sm);
    border: 1px solid var(--edurm-border);
}

.edurm-table {
    width: 100%;
    border-collapse: collapse;
}

.edurm-table th,
.edurm-table td {
    padding: 14px 12px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid var(--edurm-border);
    color: var(--edurm-text);
    font-size: 13px;
}

.edurm-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: var(--edurm-muted);
}

.edurm-table tr:last-child td {
    border-bottom: none;
}

/* نشان وضعیت */
.edurm-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--edurm-radius-pill);
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.edurm-status-pending,
.edurm-ticket-open {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.edurm-status-approved,
.edurm-paid,
.edurm-ticket-answered {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.edurm-status-rejected,
.edurm-ticket-closed {
    background: rgba(255, 90, 90, 0.15);
    color: #ff5a5a;
}

/* دکمه چشم برای مشاهده توضیحات مدیر */
.edurm-notes-toggle summary {
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    list-style: none;
    user-select: none;
}

.edurm-notes-toggle summary::-webkit-details-marker {
    display: none;
}

.edurm-notes-toggle .edurm-notes-content {
    margin-top: 8px;
    max-width: 280px;
    white-space: normal;
    background: var(--edurm-bg-input);
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius-sm);
    padding: 10px;
    font-size: 13px;
    color: var(--edurm-muted);
}

/* گفتگوی تیکت */
.edurm-ticket-card {
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius);
    padding: 18px;
    margin-bottom: 18px;
    background: var(--edurm-bg-input);
}

.edurm-ticket-head {
    margin-bottom: 12px;
}

.edurm-ticket-meta {
    display: block;
    font-size: 12px;
    color: var(--edurm-muted);
    margin-top: 6px;
}

.edurm-thread {
    margin-bottom: 14px;
}

.edurm-msg {
    border-radius: var(--edurm-radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
    max-width: 80%;
}

.edurm-msg-user {
    background: rgba(255, 255, 255, 0.06);
    margin-right: 0;
    margin-left: auto;
}

.edurm-msg-admin {
    background: rgba(79, 124, 255, 0.15);
    margin-left: 0;
    margin-right: auto;
}

.edurm-msg-meta {
    font-size: 11px;
    color: var(--edurm-muted);
    margin-bottom: 4px;
}

.edurm-msg-text {
    color: var(--edurm-text);
    line-height: 1.8;
}

.edurm-reply-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    background: var(--edurm-bg);
    border: 1px solid var(--edurm-border);
    border-radius: var(--edurm-radius-sm);
    color: var(--edurm-text);
}

.edurm-closed-note {
    color: #ff5a5a;
    font-size: 13px;
}

/* اعلان‌های ووکامرس در تم تیره */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info {
    background: var(--edurm-bg-input);
    border-top-color: var(--edurm-accent-1);
    color: var(--edurm-text);
    border-radius: var(--edurm-radius-sm);
}
