﻿


@font-face {
    font-family: 'PelakFA-Black';
    src: url('../Fonts/PelakFA-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-light.ttf') format('truetype');
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-bold.ttf') format('truetype');
}

* {
    font-family: 'Pelak', sans-serif;
}



/* customer-panel.css */

/* فونت پیش‌فرض – اگر پلیک داری اینجا اضافه کن */
body {
    /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
    background: radial-gradient(circle at top, #f3f4ff 0, #f9fafb 45%, #eef2ff 100%);
    direction: rtl;
    text-align: right;
}

/* ظرف اصلی صفحه لاگین */
.customer-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* کارت کلی */
.customer-auth-card {
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse;
}

/* ستون فرم (راست) */
.customer-auth-form {
    flex: 1;
    padding: 32px 32px 28px;
}

/* ستون برندینگ (چپ) */
.customer-auth-brand {
    flex: 1;
    background: radial-gradient(circle at top, #1d4ed8 0, #0f172a 55%, #020617 100%);
    color: #e5e7eb;
    padding: 32px 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .customer-auth-brand::before {
        content: "";
        position: absolute;
        inset: 12% 6%;
        border-radius: 32px;
        border: 2px solid rgba(148, 163, 184, 0.65);
        opacity: 0.4;
    }

/* محتوای برندینگ */
.customer-brand-header,
.customer-brand-footer {
    position: relative;
    z-index: 1;
    padding-right:10px;
}

.customer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 25px;
    margin-top: 10px;
}

    .customer-brand-logo i {
        font-size: 20px;
        color: #93c5fd;
    }

    .customer-brand-logo span {
        font-size: 14px;
        color: #e5e7eb;
    }

.customer-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 20px;
}

.customer-brand-subtitle {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 30px;
}

/* باکس استپ‌ها */
.customer-brand-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.customer-brand-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.customer-brand-step-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.customer-brand-step-text {
    font-size: 13px;
    color: #e5e7eb;
}

/* فووتر برندینگ */
.customer-brand-footer {
    font-size: 11px;
    color: #9ca3af;
    text-align:center;
}

/* هدر فرم */
.customer-form-header {
    margin-bottom: 18px;
}

.customer-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.customer-form-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* فرم */
.customer-form-group {
    margin-bottom: 14px;
}

.customer-form-label {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .customer-form-label i {
        font-size: 14px;
        color: #2563eb;
    }

.customer-input {
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding-inline: 16px;
    height: 42px;
}

    .customer-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
    }

/* ردیف گزینه‌ها زیر فیلدها */
.customer-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 18px;
    font-size: 12px;
}

    .customer-form-options a {
        color: #2563eb;
        text-decoration: none;
    }

        .customer-form-options a:hover {
            text-decoration: underline;
        }

/* دکمه اصلی */
.customer-btn-primary {
    width: 100%;
    border-radius: 999px;
    border: none;
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

    .customer-btn-primary:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
    }

    .customer-btn-primary i {
        font-size: 16px;
    }

/* ردیف زیر دکمه */
.customer-form-bottom {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* وضعیت / پیام کوچک پایین فرم */
.customer-status-text {
    font-size: 11px;
    color: #9ca3af;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .customer-auth-card {
        flex-direction: column;
    }

    .customer-auth-brand {
        order: -1;
        border-radius: 24px 24px 0 0;
    }
}
/* فیلد رمز با آیکون داخل */
.customer-password-wrapper {
    position: relative;
}

.customer-password-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
}

    .customer-password-icon:hover {
        color: #111827;
    }

.customer-password-wrapper input {
    padding-left: 42px !important;
}


/* بهینه‌سازی نسخه موبایل */
@media (max-width: 768px) {

    /* ستون برندینگ جمع‌تر بشود */
    .customer-auth-brand {
        padding: 15px 30px;
    }

    .customer-brand-title {
        font-size: 15px;
        line-height: 2;
    }

    .customer-brand-subtitle {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .customer-brand-logo {
        padding: 6px 12px;
        font-size: 10px;
    }

        .customer-brand-logo i {
            font-size: 14px;
        }

    /* استپ‌ها کوچک‌تر و فاصله کمتر */
    .customer-brand-steps {
        gap: 8px;
    }

    .customer-brand-step-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .customer-brand-step-text {
        font-size: 12px;
        line-height: 1.5;
    }

    /* متن پایین */
    .customer-brand-footer {
        font-size: 10px;
        line-height: 1.5;
        margin-top: 18px;
    }
}


/*====================================================
======================================================
========================================================*/

/* ===============================
   Dashboard Layout
================================= */

.customer-dashboard-wrapper {
    min-height: 100vh;
    padding: 28px 20px;
}

.customer-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.customer-dashboard-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.customer-dashboard-userbox {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

    .customer-dashboard-userbox i {
        font-size: 20px;
        color: #1d4ed8;
    }

    .customer-dashboard-userbox span {
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

/* ========== Cards ========== */

.customer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.customer-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    position: relative;
}

.customer-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    font-size: 18px;
    margin-bottom: 10px;
}

.customer-card-title {
    font-size: 14px;
    color: #475569;
}

.customer-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* ========== Quick Actions ========== */

.customer-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.customer-action-item {
    padding: 16px;
    background: linear-gradient(135deg,#2563eb,#1e3a8a);
    border-radius: 16px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .customer-action-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 32px rgba(37, 99, 235, 0.45);
    }

.customer-action-label {
    font-size: 15px;
    font-weight: 600;
}

.customer-action-item i {
    font-size: 28px;
}

/* ========== Logs Table ========== */

.customer-log-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.customer-log-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.customer-log-table {
    width: 100%;
    font-size: 13px;
}

    .customer-log-table thead {
        background: #f8fafc;
    }

    .customer-log-table th,
    .customer-log-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .customer-log-table tbody tr:hover {
        background: #f1f5f9;
    }

/* موبایل */
@media (max-width: 768px) {
    .customer-dashboard-wrapper {
        padding: 18px 14px;
    }

    .customer-dashboard-title {
        font-size: 19px;
    }

    .customer-card-value {
        font-size: 20px;
    }

    .customer-action-item {
        padding: 14px;
    }
}





/*============================================================
======================================================
================================================*/


/* ===============================
   Dashboard Layout
================================= */

.customer-dashboard-wrapper {
    min-height: 100vh;
    padding: 28px 20px;
}

.customer-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.customer-dashboard-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.customer-dashboard-userbox {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

    .customer-dashboard-userbox i {
        font-size: 20px;
        color: #1d4ed8;
    }

    .customer-dashboard-userbox span {
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

/* Cards */
.customer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.customer-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    position: relative;
}

.customer-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 17px;
    margin-bottom: 8px;
}

.customer-card-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.customer-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* Quick actions */
.customer-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.customer-action-item {
    padding: 16px;
    background: linear-gradient(135deg,#2563eb,#1e3a8a);
    border-radius: 16px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .customer-action-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 32px rgba(37, 99, 235, 0.45);
    }

.customer-action-label {
    font-size: 15px;
    font-weight: 600;
}

.customer-action-item i {
    font-size: 26px;
}

/* Service stats chips */
.customer-service-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.customer-service-chip {
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Boxes (chart + logs + top cities) */
.customer-log-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.customer-log-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* Logs table */
.customer-log-table {
    width: 100%;
    font-size: 12px;
}

    .customer-log-table thead {
        background: #f8fafc;
    }

    .customer-log-table th,
    .customer-log-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .customer-log-table tbody tr:hover {
        background: #f1f5f9;
    }

/* Top cities */
.customer-topcities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-topcities-item {
    background: #eff6ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e3a8a;
}

/* Chart box height */
#usageChart {
    max-height: 220px;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-dashboard-wrapper {
        padding: 18px 14px;
    }

    .customer-dashboard-title {
        font-size: 19px;
    }

    .customer-card-value {
        font-size: 20px;
    }
}


/* placeholder کم‌رنگ */
.customer-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

/* پشتیبانی مرورگرها */
.customer-input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.customer-input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.customer-input:focus::placeholder {
    opacity: 0.25;
}


    input[data-jdp]::placeholder {
        color: #999;
    }

input[data-jdp] {
    cursor: pointer;
}
input[data-jdp] {
    cursor: pointer;
    background-color: #fff;
}

.password-eye {
    position: absolute;
    top: 50%;
    left: 12px; /* چون RTL هست */
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

    .password-eye:hover {
        color: #111;
    }
.password-eye {
    position: absolute;
    top: 50%;
    left: 12px; /* RTL */
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    user-select: none;
}

    .password-eye:hover {
        color: #111;
    }

.password-strength {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.password-weak {
    color: #dc2626;
}

.password-medium {
    color: #d97706;
}

.password-strong {
    color: #16a34a;
}



/*===================================================
===============================================
======================منوی بالا ====================*/


.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.brand {
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
}

.menu-btn {
    font-size: 15px;
    background: none;
    border: none;
}

.profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 180px;
}

.profile:hover .profile-menu {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
}

    .profile-menu a:hover {
        background: #f5f5f5;
    }

.profile-menu .danger {
    color: #dc2626;
}
