:root {
    --bg: #f1ebdd;
    --sidebar: linear-gradient(#ffffff, #f6f0e5);
    --panel: #ffffff;
    --panelHi: #fbf5e9;

    --ink: #14202e;
    --body: #3d4a5a;
    --muted: #6b7787;

    --line: rgba(12, 21, 36, 0.1);
    --line2: rgba(12, 21, 36, 0.07);

    --field: rgba(12, 21, 36, 0.035);
    --fieldBorder: rgba(12, 21, 36, 0.14);

    --navbg: rgba(255, 255, 255, 0.85);
    --navbg2: rgba(255, 255, 255, 0.7);
    --bg-1: rgba(46, 124, 151, 0.12);

    --primary: #d7a73b;
    --btn: linear-gradient(100deg, rgb(227, 199, 122), rgb(200, 155, 60));
    --hover: rgba(87, 87, 87, 0.12);
}
#theme-toggle {
    position: sticky;
    top: 0;
    z-index: 1000000000000000000;
}
[data-theme="dark"] {
    --bg: #080d18;
    --sidebar: linear-gradient(#0c1626, #0a1220);
    --panel: linear-gradient(#111d31, #0d1728);
    --panelHi: linear-gradient(#13233c, #0e1a2e);

    --ink: #f4e9cc;
    --body: #c6cbd4;
    --muted: #8fa9b6;

    --line: rgba(255, 255, 255, 0.08);
    --line2: rgba(255, 255, 255, 0.06);

    --field: rgba(255, 255, 255, 0.04);
    --fieldBorder: rgba(255, 255, 255, 0.12);

    --navbg: rgba(8, 13, 24, 0.82);
    --navbg2: rgba(8, 13, 24, 0.6);
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/vazirmatn/v16/Dxxo8j6PP2D_kU2muijlGMWWMmk.woff2)
    format("woff2");
}
* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}

body {
    font-family: "Vazirmatn";
    background-color: var(--bg);
}
/*=========================================
            DASHBOARD LAYOUT
=========================================*/

.dashboard {
    display: flex;

    min-height: 100vh;

    background: var(--bg);
}

/*=========================================
                SIDEBAR
=========================================*/

.dashboard-sidebar {
    width: 280px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--panel);

    border-left: 1px solid var(--line);

    display: flex;

    flex-direction: column;

    flex-shrink: 0;

    position: sticky;

    top: 0;

    height: 100vh;

    overflow-y: auto;
}
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}
/* حالت جمع شده */
.dashboard-sidebar.collapsed {
    width: 90px;
}

/* لوگو */
.dashboard-sidebar.collapsed .sidebar-logo {
    padding: 20px 0;
}

.dashboard-sidebar.collapsed .sidebar-logo img {
    width: 45px;
    height: auto;
}

/* پروفایل */
.dashboard-sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 10px;
}

.dashboard-sidebar.collapsed .profile-info {
    display: none;
}
/* منو */
.dashboard-sidebar.collapsed .sidebar-menu {
    padding: 12px 10px;
}

.dashboard-sidebar.collapsed .sidebar-menu span {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px;
}

.dashboard-sidebar.collapsed .sidebar-menu a i {
    margin: 0;
    font-size: 24px;
}

/*=========================================
                LOGO
=========================================*/

.sidebar-logo {
    padding: 30px;

    text-align: center;
}

.sidebar-logo img {
    height: 65px;
}

/*=========================================
            PROFILE CARD
=========================================*/

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(200, 155, 60, 0.08);
    border: 1px solid rgba(200, 155, 60, 0.2);
    margin-bottom: 10px;
}

.profile-info {
    flex: 1;
}

.profile-info h5 {
    font-size: 18px;

    color: var(--ink);

    margin-bottom: 6px;

    font-weight: 800;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.profile-info span {
    color: #59a8d5;

    font-size: 15px;
}

.profile-avatar {
    width: 58px;

    height: 58px;

    border-radius: 18px;

    background: linear-gradient(135deg, #c8aa54, #2e7c97);

    display: flex;

    justify-content: center;

    align-items: center;

    color: #fff;

    font-size: 24px;

    font-weight: 700;
}

/*=========================================
                MENU
=========================================*/

.sidebar-menu {
    list-style: none;

    margin: 0;

    padding: 12px 18px 35px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;

    flex-direction: row-reverse;

    gap: 10px;

    justify-content: start;

    align-items: center;

    text-decoration: none;

    padding: 15px 18px;

    border-radius: 16px;

    color: var(--ink);

    transition: 0.3s;
}

.sidebar-menu a i {
    font-size: 22px;

    color: #6f7d8d;

    transition: 0.3s;
}

.sidebar-menu a span {
    font-size: 17px;

    font-weight: 600;
}

.sidebar-menu a:hover {
    background: rgba(215, 167, 59, 0.1);
}

.sidebar-menu a:hover i {
    color: var(--primary);
}

.sidebar-menu a.active {
    background: rgba(200, 155, 60, 0.12);

    color: var(--ink);

    font-weight: 700;
}

.sidebar-menu a.active i {
    color: var(--primary);
}
.dashboard-sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px;
}

/*=========================================
            CONTENT
=========================================*/

.dashboard-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    min-width: 0;
}

/*=========================================
                HEADER
=========================================*/

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    border-bottom: 1px solid rgba(200, 155, 60, 0.14);
    background: var(--navbg2);
}

/*=========================================
            HEADER LEFT
=========================================*/

.header-left {
    display: flex;

    align-items: center;

    gap: 12px;
}

.header-icon {
    width: 52px;

    height: 52px;

    border-radius: 16px;

    border: 1px solid rgba(215, 167, 59, 0.35);

    background: var(--bg-1);

    color: #d7a73b;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: 0.3s;
}

.header-icon:hover {
    background: var(--hover);
}

.header-icon i {
    font-size: 22px;
}

.notify-badge {
    position: absolute;

    top: -6px;

    left: -6px;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #ef5350;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    display: flex;

    justify-content: center;

    align-items: center;
}

/*=========================================
                ASK AI
=========================================*/

.ask-ai-btn {
    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: #111;

    padding: 0 22px;

    height: 52px;

    border-radius: 16px;

    background: var(--btn);

    font-weight: 700;

    transition: 0.3s;
}

.ask-ai-btn:hover {
    transform: translateY(-2px);

    color: #111;

    box-shadow: 0 10px 25px rgba(215, 167, 59, 0.25);
}

/*=========================================
            HEADER RIGHT
=========================================*/

.header-right {
    display: flex;

    align-items: center;

    gap: 18px;
}

.header-right h3 {
    margin: 0;

    font-size: 22px;

    color: var(--ink);

    font-weight: 800;
}

/*=========================================
            BODY
=========================================*/

.dashboard-body {
    flex: 1;
    padding: 35px;
    transition: all 0.3s ease;
}
/* layuotM */
.dashboard-header-mobile {
    height: 72px;

    background: var(--navbg2);

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-left,
.mobile-right {
    display: flex;

    align-items: center;

    gap: 10px;
}

.mobile-title h3 {
    margin: 0;

    color: var(--ink);

    font-size: 18px;

    font-weight: 700;
}

@media (max-width: 991px) {
    .dashboard-body{
        padding:unset;
    }
    .dashboard-sidebar {
        position: fixed;

        top: 0;

        /* right:-320px; */

        width: 290px;

        height: 100vh;

        z-index: 9999;

        transition: 0.35s;

        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .dashboard-sidebar.show {
        right: 0;
    }

    .dashboard-content {
        width: 100%;
    }
}
.sidebar-backdrop {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

    z-index: 9998;
}

.sidebar-backdrop.show {
    opacity: 1;

    visibility: visible;
}
/*=====================================
            AI CHAT
=====================================*/

.ai-chat {
    padding: 30px;
}

.chat-card {
    background: var(--panel);
    border: 1px solid rgba(200, 155, 60, 0.28);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 24px 60px;
}

/*=====================================
            HEADER
=====================================*/

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line2);
    background: var(--panel);
}

.chat-expand {
    height: 48px;

    padding: 0 22px;

    border-radius: 15px;

    border: 1px solid rgba(215, 167, 59, 0.45);

    color: var(--primary);

    display: flex;

    align-items: center;

    gap: 10px;

    transition: 0.3s;
}

.chat-expand:hover {
    background: var(--panelHi);
}

.chat-ai {
    display: flex;

    justify-content: space-between;

    width: 100%;

    align-items: center;

    gap: 20px;
}

.chat-ai-avatar {
    width: 64px;

    height: 64px;

    border-radius: 18px;

    background: linear-gradient(135deg, #c89b3c, #2e7c97);

    display: flex;

    justify-content: center;

    align-items: center;

    color: #fff;

    font-size: 34px;

    font-weight: 700;
}

.chat-ai-info h3 {
    margin: 0;

    color: var(--ink);

    /* font-size:36px; */

    font-weight: 800;
}

.chat-ai-status {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;

    color: #59a8d5;

    font-size: 17px;
}

.status-dot {
    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #44d17d;
}

/*=====================================
            BODY
=====================================*/

.chat-body {
    height: 250px;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}

/*=====================================
            MESSAGE
=====================================*/

.message-bot {
    align-self: flex-start;
    max-width: 88%;
    background: rgba(200, 155, 60, 0.1);
    border: 1px solid rgba(200, 155, 60, 0.28);
    color: var(--ink);
    position:relative;
    padding: 14px 17px;
    border-radius: 15px 15px 5px;
    font-size: 15px;
    line-height: 1.85;
}

.message-user {
    align-self: flex-end;
    max-width: 80%;
    background: rgba(46, 124, 151, 0.16);
    border: 1px solid rgba(46, 124, 151, 0.32);
    color: var(--ink);
    padding: 13px 16px;
    position:relative;
    border-radius: 15px 15px 15px 5px;
    font-size: 15px;
    line-height: 1.75;
}
.bi-copy{
    color:var(--ink) !important;
}

.chat-preview {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    padding: 0 30px 18px;
}

.preview-item {
    display: flex;

    align-items: center;

    gap: 15px;

    background: #eef8ff;

    width: fit-content;

    border: 1px solid rgba(46, 124, 151, 0.25);

    border-radius: 16px;

    padding: 12px;
}

.preview-thumb {
    width: 70px;

    height: 70px;

    border-radius: 12px;

    overflow: hidden;
}

.preview-thumb img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.preview-info h6 {
    margin: 0;

    font-size: 15px;
}

.preview-info small {
    color: var(--muted);
}

.preview-remove {
    width: 34px;

    height: 34px;

    border: none;

    border-radius: 10px;

    background: #fff;

    color: #d44;
}

.chat-footer {
    padding: 22px 30px;

    border-top: 1px solid var(--line);

    display: flex;

    gap: 18px;

    align-items: flex-end;
}

.chat-input-box {
    flex: 1;

    display: flex;

    width: 100%;

    align-items: center;

    background: var(--field);

    border: 1px solid var(--fieldBorder);

    border-radius: 24px;

    padding: 15px;
}

.chat-input-box textarea {
    flex: 1;

    resize: none;

    border: none;

    outline: none;

    background: none;

    font-size: 20px;

    max-height: 180px;

    overflow-y: auto;

    color: var(--ink);
}

.chat-tools {
    display: flex;

    align-items: center;

    gap: 15px;
}

.tool-btn {
    width: 48px;

    height: 48px;

    border-radius: 14px;

    display: flex;

    justify-content: center;

    align-items: center;

    border: 0 !important;

    cursor: pointer;

    color: #5c7793;

    transition: 0.3s;

    background: unset !important;
}

.tool-btn:hover {
    background: rgba(46, 124, 151, 0.08);
}

.tool-btn i {
    font-size: 26px;
}

.send-btn {
    width: 58px;

    height: 58px;

    border: none;

    border-radius: 18px;

    background: var(--btn);

    color: #13202d;

    font-size: 22px;

    transition: 0.3s;
}

.send-btn:hover {
    transform: translateY(-3px);
}
.chat-input-box.drag {
    border: 2px dashed var(--primary);

    background: rgba(215, 167, 59, 0.08);
}
@media (max-width: 991px) {
    .ai-chat {
        padding: 10px;
    }
    .chat-input-box {
        flex-direction: column;
    }
    .chat-card {
        /* min-height: calc(100vh - 90px); */

        border-radius: 20px;
    }

    .chat-header {
        padding: 18px;
    }
    .chat-ai {
        flex-direction: column;
    }

    .chat-ai-info h3 {
        font-size: 20px;

        line-height: 1.8;
    }

    .chat-ai-status {
        font-size: 13px;
    }

    .chat-ai-avatar {
        width: 70px;

        height: 50px;

        font-size: 26px;
    }

    .message-content {
        max-width: 100%;

        font-size: 16px;

        line-height: 1.9;
    }

    .chat-footer {
        padding: 15px;
    }

    .chat-input-box textarea {
        font-size: 16px;
    }
}
/* میزکار */
.dashboard-stats {
    position: relative;
}

.stats-text {
    color: var(--muted);

    font-size: 18px;

    font-weight: 500;
}

.stat-card {
    background: var(--panel);

    border: 1px solid var(--line2);

    border-radius: 26px;

    padding: 28px;

    min-height: 190px;

    overflow: hidden;

    transition: 0.35s;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 58px;

    height: 58px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;
}

.stat-icon.blue {
    background: rgba(46, 124, 151, 0.15);

    color: #63bde6;
}

.stat-icon.gold {
    background: rgba(215, 167, 59, 0.12);

    color: var(--primary);
}

.stat-change {
    font-size: 15px;

    font-weight: 700;
}

.stat-change.positive {
    color: #22c55e;
}

.stat-card .pkar {
    margin-bottom: 6px;

    width: fit-content;

    margin-right: auto;

    font-size: 48px;

    color: var(--ink);
}

.stat-card p {
    margin: 0;

    color: var(--muted);

    font-size: 18px;
}
@media (max-width: 991px) {
    .stats-text {
        text-align: center;

        font-size: 16px;
    }

    .stat-card {
        min-height: 160px;

        padding: 20px;

        border-radius: 20px;
    }

    .stat-card h2 {
        font-size: 30px;

        margin-top: 28px;
    }

    .stat-card p {
        font-size: 14px;
    }

    .stat-icon {
        width: 48px;

        height: 48px;

        font-size: 20px;

        border-radius: 14px;
    }

    .stat-change {
        top: 18px;

        left: 20px;

        font-size: 13px;
    }
}
/* لیست کار */
.dashboard-shortcuts {
    margin-top: 20px;
}

.shortcut-card {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 20px;

    background: var(--panelHi);

    border: 1px solid var(--line2);

    border-radius: 26px;

    min-height: 175px;

    text-decoration: none;

    overflow: hidden;

    transition: 0.35s;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.shortcut-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
            135deg,
            rgba(215, 167, 59, 0.06),
            rgba(46, 124, 151, 0.04)
    );

    opacity: 0;

    transition: 0.35s;
}

.shortcut-card:hover {
    transform: translateY(-8px);

    border-color: rgba(215, 167, 59, 0.35);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.shortcut-card:hover::before {
    opacity: 1;
}

.shortcut-icon {
    position: relative;

    z-index: 2;

    width: 72px;

    height: 72px;

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    color: var(--ink);

    background: var(--btn);

    box-shadow: 0 15px 30px rgba(215, 167, 59, 0.28);

    transition: 0.35s;
}

.shortcut-card:hover .shortcut-icon {
    transform: scale(1.08) rotate(-5deg);
}

.shortcut-card h5 {
    position: relative;

    z-index: 2;

    margin: 0;

    color: var(--ink);

    font-weight: 700;

    text-align: center;
}
/* پنل کار */
.dashboard-box {
    background: var(--panel);

    border: 1px solid var(--line2);

    border-radius: 28px;

    padding: 30px;

    height: 100%;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.dashboard-box-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;
}

.dashboard-box-header h3 {
    margin: 0;

    font-size: 34px;

    font-weight: 800;

    color: var(--ink);
}

.dashboard-box-header a {
    color: var(--primary);

    text-decoration: none;

    font-weight: 600;
}

/*======================
      پرونده ها
=======================*/

.case-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.case-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background: var(--panel);

    border: 1px solid var(--line2);

    border-radius: 22px;

    padding: 22px;

    text-decoration: none;

    transition: 0.3s;
}

.case-item:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.case-status {
    min-width: 90px;

    text-align: center;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 700;
}

.case-status.blue {
    background: rgba(46, 124, 151, 0.12);

    color: #67bde5;
}

.case-status.gold {
    background: rgba(215, 167, 59, 0.14);

    color: var(--primary);
}

.case-status.purple {
    background: #edf0ff;

    color: #7a84ff;
}

.case-status.green {
    background: #e7fff1;

    color: #23b45d;
}

.case-content {
    flex: 1;

    text-align: right;
}

.case-content h5 {
    margin-bottom: 8px;

    color: var(--ink);

    font-size: 24px;

    font-weight: 700;
}

.case-content p {
    margin: 0;

    color: var(--muted);
}

.case-date {
    float: left;

    color: #8e98b0;

    font-size: 15px;
}

/*======================
      جلسات
=======================*/

.meeting-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.meeting-item {
    display: flex;

    align-items: center;

    gap: 18px;
}

.meeting-date {
    width: 74px;

    height: 74px;

    border-radius: 18px;

    background: rgba(46, 124, 151, 0.12);

    border: 1px solid rgba(46, 124, 151, 0.18);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}

.meeting-date span {
    font-size: 32px;

    font-weight: 800;

    color: #78bfe6;

    line-height: 1;
}

.meeting-date small {
    color: var(--muted);
}

.meeting-item h5 {
    margin-bottom: 8px;

    font-size: 22px;

    color: var(--ink);

    font-weight: 700;
}

.meeting-item p {
    margin: 0;

    color: var(--muted);
}
@media (max-width: 991px) {
    .dashboard-box {
        padding: 20px;
    }

    .dashboard-box-header h3 {
        font-size: 24px;
    }

    .case-item {
        flex-direction: column;

        align-items: flex-start;
    }

    .case-content {
        width: 100%;
    }

    .case-date {
        float: none;

        margin-bottom: 8px;
    }

    .meeting-item {
        gap: 15px;
    }

    .meeting-item h5 {
        font-size: 18px;
    }

    .meeting-date {
        width: 62px;

        height: 62px;
    }

    .meeting-date span {
        font-size: 24px;
    }
}
.app {
    height: 100vh;
    padding: 20px;
    display: flex;
    gap: 18px;
    direction: rtl;
}

.chat-panel,
.chatsidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(35, 29, 10, 0.07);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.chat-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%); */
}

.chatsidebar {
    width: 330px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
}

.chat-header {
    min-height: 102px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--line2);
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.law-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(215, 167, 59, 0.25);
    color: #c6a043;
    border-radius: 999px;
    font-size: 14px;
    /* background: rgba(255, 255, 255, 0.7); */
    white-space: nowrap;
}

.chat-title-wrap {
    display: flex;
    width: 100%;
    justify-content: start;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}

.ai-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, #738a74, #4e7a83);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(40, 59, 51, 0.12);
}

.chat-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: start;
}

.chat-title h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 700;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7aa1b4;
    font-size: 14px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35c46a;
    box-shadow: 0 0 0 5px rgba(53, 196, 106, 0.12);
}

.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 22px 10px;
}

.message-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #738a74, #4e7a83);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex: 0 0 auto;
}

.message-bubble {
    max-width: min(760px, 100%);
    background: var(--panelHi);
    border: 1px solid rgba(215, 167, 59, 0.18);
    border-radius: 18px;
    padding: 22px 24px;
    color: var(--ink);
    font-size: 16px;
    line-height: 2;
    box-shadow: 0 6px 24px rgba(33, 24, 6, 0.04);
}

.chat-footerai {
    border-top: 1px solid var(--line2);
    padding: 16px 18px 18px;
}

.suggestions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.suggestion {
    border: 1px solid rgba(215, 167, 59, 0.35);
    color: #c39a3a;
    background: rgba(255, 255, 255, 0);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.suggestion:hover {
    transform: translateY(-1px);
    background: #fff9eb;
}

.input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    /* background: rgba(255, 255, 255, 0.86); */
    border: 1px solid var(--fieldBorder);
    border-radius: 18px;
    padding: 10px 12px 10px 10px;
    min-height: 74px;
}

.send-btn {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: var(--btn);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px rgba(201, 156, 63, 0.23);
}

.send-btn svg {
    width: 22px;
    height: 22px;
    fill: #14202e;
}

.input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--ink);
    direction: rtl;
    min-width: 0;
    padding: 0 8px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8792;
    font-size: 20px;
    flex: 0 0 auto;
    margin-right: 4px;
}

.footer-note {
    text-align: center;
    color: #7a7a78;
    font-size: 12px;
    margin-top: 10px;
}

.sidebar-head {
    padding: 18px;
    border-bottom: 1px solid var(--line2);
}

.new-chat {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: var(--btn);
    color: #1a1d24;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(201, 156, 63, 0.18);
}

.sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 14px;
}
.sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}

.section-title {
    color: #7a7a78;
    font-size: 15px;
    margin: 8px 8px 14px;
}

.chat-item {
    position: relative;
    /* background: rgba(255, 255, 255, 0.8); */
    border: 1px solid rgba(12, 21, 36, 0.06);
    border-radius: 18px;
    padding: 16px 16px 14px;
    margin-bottom: 10px;
    min-height: 74px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-item.active::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    bottom: 12px;
    width: 6px;
    border-radius: 0 8px 8px 0;
    background: rgba(215, 167, 59, 0.55);
}

.chat-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    align-items: start;
}

.chat-name {
    color: #d2ba81;
    font-size: 15px;
    line-height: 1.5;
    text-align: right;
}

.chat-time {
    color: #9ca5af;
    font-size: 13px;
}

.chat-icon {
    color: #caa74f;
    font-size: 18px;
    flex: 0 0 auto;
}

.nav-links {
    border-top: 1px solid var(--line2);
    padding: 18px 14px 20px;
    display: grid;
    gap: 16px;
    /* background: rgba(255, 255, 255, 0.35); */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    color: var(--body);
    font-size: 15px;
    text-decoration: none;
    padding: 4px 10px;
}

.nav-link .ico {
    color: #c7a24c;
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.sidebar-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    color: #2a3442;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    align-items: center;
    gap: 8px;
}

.overlay {
    display: none;
}

@media (max-width: 980px) {
    .app {
        padding: 12px;
    }

    .chatsidebar {
        position: fixed;
        top: 12px;
        bottom: 12px;
        right: 12px;
        width: min(84vw, 340px);
        z-index: 50;
        transform: translateX(110%);
        transition: transform 0.28s ease;
    }

    .chatsidebar.open {
        transform: translateX(0);
    }

    .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 40;
    }

    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .chat-panel {
        width: 100%;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .chat-header {
        flex-wrap: wrap;
    }

    .chat-title h1 {
        font-size: 18px;
    }

    .message-bubble {
        font-size: 15px;
        line-height: 1.9;
    }
}

@media (max-width: 640px) {
    .app {
        padding: 8px;
    }

    .chat-header {
        padding: 16px 16px 14px;
    }

    .chat-body {
        padding: 16px 14px 8px;
    }

    .chat-footerai {
        padding: 12px;
    }

    .suggestions {
        gap: 8px;
    }

    .suggestion {
        font-size: 13px;
        padding: 9px 12px;
    }

    .input-bar {
        min-height: 66px;
    }

    .send-btn {
        width: 48px;
        height: 48px;
    }

    .input {
        font-size: 15px;
    }
}
/* آرایه */
.law-page {
    background: var(--bg);
    min-height: 100vh;
}

/* Search */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--field);
    border: 1px solid var(--fieldBorder);
    border-radius: 12px;
    max-width: 460px;
    margin-bottom: 20px;
}

.search-box input {
    padding: 11px 56px 11px 0;
    flex: 1 1 0%;
    background: transparent;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    color: var(--ink) !important;
    font-size: 15px;
}
.search-box input::placeholder {
    color: var(--body);
}

.search-box input:focus {
    border-radius: 14px;
    box-shadow: none;
    border-color: var(--primary);
    background: var(--field);
    color: var(--ink);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
}

/* Card */
.laws-section {
    padding-top: 100px;
}

.law-card-1 {
    background: var(--panel);
    border-radius: 24px;
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid var(--line2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.law-card-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.law-head {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 18px;
}

.law-arrow {
    width: 42px;
    color: #6f7d8e;
    font-size: 28px;
}

.law-content {
    flex: 1;
    text-align: right;
}

.law-title {
    font-size: 28px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 8px;
}

.law-meta {
    color: var(--muted);
    font-size: 15px;
}

.law-meta span {
    margin: 0 8px;
}

.law-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(215, 167, 59, 0.12);
    border: 1px solid rgba(215, 167, 59, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
}

/* Summary */

.law-summary {
    margin-top: 22px;
    background: rgba(46, 124, 151, 0.08);
    border-right: 4px solid #2580ad;
    border-radius: 10px;
    padding: 18px 22px;
    color: var(--body);
    font-size: 17px;
    line-height: 2;
}

.law-summary b {
    color: #46a7df;
}

/* Mobile */

@media screen AND (max-width: 768px) {
    .law-card {
        padding: 18px;
    }

    .law-head {
        gap: 12px;
    }

    .laws-title {
        font-size: 30px !important;
    }
    .laws-desc {
        font-size: 16px !important;
    }
    .law-meta {
        justify-content: center;
        font-size: 13px;
    }

    .law-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .law-summary {
        font-size: 15px;
        padding: 15px;
    }

    .search-box input {
        height: 50px;
    }
}

.laws-section .container {
    position: relative;
    z-index: 2;
}

.laws-subtitle {
    display: block;
    color: #53a9e5;
    font-size: 20px;
    margin-bottom: 12px;
}

.laws-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 18px;
}

.laws-desc {
    font-size: 25px;
    color: var(--muted);
    margin-bottom: 50px;
}

.law-card {
    cursor: pointer;
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 14px;
    color: var(--body);
    transition: 0.2s;
}

.law-card:hover {
    transform: translateY(-6px);

    color: var(--ink);

    box-shadow: 0 22px 45px rgba(26, 34, 56, 0.15);
}

.law-card span {
    font-weight: 500;
}

.law-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(200, 155, 60, 0.12);
    border: 1px solid rgba(200, 155, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.law-info {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px 25px;

    background: rgba(46, 124, 151, 0.08);

    border: 1px solid rgba(46, 124, 151, 0.15);

    border-radius: 18px;

    color: var(--body);
}

.law-info i {
    color: #2e7c97;

    font-size: 22px;
}

.law-search {
    position: relative;
}

.law-search input {
    height: 72px;

    border-radius: 18px;

    background: var(--panel);

    border: 1px solid var(--line);

    padding-right: 70px;

    font-size: 18px;

    color: var(--ink);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.law-search input:focus {
    color: var(--ink);
    border-color: var(--primary);

    box-shadow: 0 0 0 0.2rem rgba(215, 167, 59, 0.15);
}
.law-search input::placeholder {
    color: var(--body);
}

.law-search button {
    position: absolute;

    top: 50%;

    right: 20px;

    transform: translateY(-50%);

    background: none;

    border: none;

    color: var(--primary);

    font-size: 24px;
}

.law-filter {
    display: flex;

    justify-content: flex-end;

    gap: 15px;

    margin: 30px 0;

    flex-wrap: wrap;
}

.law-filter button {
    height: 52px;

    border-radius: 50px;

    background: var(--panel);

    border: 1px solid var(--fieldBorder);

    padding: 0 24px;

    color: var(--ink);

    transition: 0.3s;
}

.law-filter button:hover {
    background: var(--panelHi);
}

.law-filter .active {
    background: var(--btn);

    color: #fff;

    border: none;
}

.law-title {
    font-size: 34px;

    font-weight: 700;

    color: var(--ink);

    margin-bottom: 30px;
}

.law-title span {
    color: var(--primary);
}

.law-item {
    display: flex;

    align-items: center;

    gap: 25px;

    padding: 25px;

    margin-bottom: 20px;

    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 22px;

    transition: 0.35s;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.law-item:hover {
    transform: translateY(-4px);

    border-color: var(--primary);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.law-icon {
    width: 72px;

    height: 72px;

    border-radius: 20px;

    background: var(--panelHi);

    display: flex;

    justify-content: center;

    align-items: center;

    color: var(--primary);

    font-size: 30px;

    border: 1px solid rgba(215, 167, 59, 0.35);
}

.law-content {
    flex: 1;
}

.law-content h4 {
    color: var(--ink);

    font-size: 25px;

    margin-bottom: 12px;

    font-weight: 700;
}

.law-meta {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--muted);
}

.badge-country {
    background: rgba(46, 124, 151, 0.1);

    color: #2e7c97;

    padding: 6px 16px;

    border-radius: 30px;

    font-size: 14px;
}

.law-actions {
    display: flex;

    gap: 12px;
}

.btn-primary-custom {
    background: var(--btn);

    color: var(--btn);

    border: none;

    padding: 12px 28px;

    border-radius: 14px;
}

.btn-primary-custom:hover {
    color: #fff;

    opacity: 0.9;
}

.btn-outline-custom {
    border: 1px solid var(--primary);

    color: var(--primary);

    padding: 12px 24px;

    border-radius: 14px;
}

.btn-outline-custom:hover {
    background: var(--primary);

    color: #fff;
}

@media (max-width: 992px) {
    .law-item {
        flex-direction: column;

        text-align: center;
    }

    .law-actions {
        width: 100%;

        justify-content: center;
    }

    .law-filter {
        justify-content: center;
    }
}
/* ارتباط با موکلین */

/* پرونده */
.btn-new-project {
    background: var(--btn);

    color: #111;

    border: none;

    height: 56px;

    min-width: 170px;

    border-radius: 18px;

    font-weight: 700;

    transition: 0.3s;
}
.btn-new-movakel {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(46, 124, 151, 0.5);
    color: rgb(127, 199, 222);
    font-weight: 700;
    font-size: 14.5px;
    padding: 11px 20px;
    border-radius: 11px;
}
.btn-new-movakel:hover {
    background: rgba(46, 124, 151, 0.12);
}

.btn-new-project:hover {
    transform: translateY(-2px);

    color: #111;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-search .form-control {
    background: rgba(255, 255, 255, 0.45);

    border: 1px solid var(--fieldBorder);

    border-left: none;

    height: 56px;

    border-radius: 18px;

    box-shadow: none;

    color: var(--ink);
}
.project-search .form-control::placeholder {
    color: var(--ink) !important;
}

.project-search .input-group-text {
    background: rgba(255, 255, 255, 0.45);

    border: 1px solid var(--fieldBorder);

    border-right: none;

    border-radius: 18px;

    color: var(--ink);

    padding-inline: 22px;
}

/*======================
Card
=======================*/

.project-card {
    background: var(--panel);

    border-radius: 26px;

    transition: 0.35s;

    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
}

.project-card .card-parvande {
    padding-inline: 30px;
}

/*======================
Arrow
=======================*/

.btn-arrow {
    width: 44px;

    height: 44px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #5f6d82;

    font-size: 24px;
}

.btn-arrow:hover {
    background: var(--hover);
}

/*======================
Icon
=======================*/

.icon-parvande {
    width: 64px;

    height: 64px;

    border-radius: 20px;

    border: 1px solid rgba(215, 167, 59, 0.45);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--primary);

    font-size: 28px;

    background: #fffaf2;
}

/*======================
Typography
=======================*/

.project-card h5 {
    color: var(--ink);

    font-size: 26px;

    font-weight: 700;
}

.project-card p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
}

.project-card small {
    color: var(--muted);

    font-size: 16px;
}

/*======================
Status
=======================*/

.badge-parvande {
    padding: 0.75rem 1.2rem;

    border-radius: 50rem;

    font-size: 14px;

    font-weight: 600;
}

.status-blue {
    background: #dceef9;

    color: #65a9d9;
}

.status-yellow {
    background: #f9efdc;

    color: #d7a73b;
}

.status-purple {
    background: #e7ebff;

    color: #8194ff;
}

.status-green {
    background: #dff5e8;

    color: #34a56f;
}

/*======================
Responsive
=======================*/

@media (max-width: 992px) {
    .project-card h5 {
        font-size: 21px;
    }

    .project-card p {
        font-size: 14px;
    }

    .project-icon {
        width: 100%;

        height: 100%;

        font-size: 24px;
    }
    .icon-parvande {
        width: 50px;

        height: 50px;

        font-size: 24px;
    }
    .m-parvande {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .btn-new-project,
    .btn-new-movakel {
        width: 100%;
    }

    .project-search {
        margin-bottom: 10px;
    }

    .project-card .card-body {
        padding: 20px;
    }

    .project-icon {
        margin-top: 20px;
    }

    .project-card {
        border-radius: 20px;
    }

    .badge-parvande {
        margin-top: unset;
    }
}

@media (max-width: 576px) {
    .project-card h5 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 13px;
    }

    .project-search .form-control {
        height: 50px;
    }

    .btn-new-project {
        height: 50px;
    }
}
/* پرونده جدید */
.create-case-card {
    background: var(--panel);

    border-radius: 28px;

    overflow: hidden;

    transition: 0.35s;
}

.create-case-card:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06) !important;
}

/*=========================
Title
=========================*/

.page-title {
    color: var(--ink);

    font-size: 36px;

    font-weight: 800;
}

/*=========================
Label
=========================*/

.form-label {
    color: var(--body);

    font-size: 14px;

    margin-bottom: 10px;

    font-weight: 500;
}

/*=========================
Input
=========================*/

.custom-input {
    height: 54px;

    border-radius: 15px;

    border: 1px solid var(--fieldBorder);

    background: var(--field);

    color: var(--ink);

    box-shadow: none !important;

    transition: 0.3s;

    padding-inline: 18px;
}

.custom-input::placeholder {
    color: var(--body);
}

.custom-input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 0.18rem rgba(215, 167, 59, 0.15) !important;
}

/*=========================
Select
=========================*/

.form-select {
    cursor: pointer;
}

/*=========================
Textarea
=========================*/

textarea.custom-input {
    height: 140px;

    resize: vertical;

    padding-top: 15px;
}

/*=========================
Button
=========================*/

.btn-save {
    min-width: 190px;

    height: 52px;

    border: none;

    border-radius: 16px;

    background: var(--btn);

    color: #111;

    font-weight: 700;

    transition: 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);

    color: #111;

    box-shadow: 0 12px 25px rgba(200, 155, 60, 0.35);
}

/*=========================
Responsive
=========================*/

@media (max-width: 992px) {
    .page-title {
        font-size: 30px;
    }

    .create-case-card .card-body {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 26px;

        text-align: center;

        width: 100%;
    }

    .create-case-card {
        border-radius: 22px;
    }

    .create-case-card .card-body {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .custom-input {
        height: 50px;

        font-size: 14px;
    }

    textarea.custom-input {
        height: 120px;
    }
}
/* ===========================
   Case Header
=========================== */

.case-header {
    background: var(--panelHi);
    border: 1px solid rgba(215, 167, 59, 0.35);
    border-radius: 24px;
    transition: 0.3s;
}

.case-header:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.case-header .card-body {
    padding: 28px 35px;
}

.case-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
}

.case-meta span {
    color: var(--body);
    font-size: 0.95rem;
}

.case-meta i {
    color: var(--primary);
    margin-left: 6px;
}

.badge-status {
    background: #d9eef8;

    color: #68a8d4;

    font-weight: 600;

    border-radius: 30px;

    padding: 0.55rem 1rem;
}

/* ===========================
   Cards
=========================== */

.info-card {
    background: var(--panel);

    border-radius: 24px;

    transition: 0.3s;
}

.info-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.info-card .card-body {
    padding: 26px;
}

/* ===========================
   Section title
=========================== */

.section-title {
    display: flex;

    justify-content: start;

    align-items: center;

    gap: 10px;

    font-size: 1.45rem;

    font-weight: 700;

    color: var(--ink);
}

.section-title i {
    color: var(--primary);
}

/* ===========================
   Person Item
=========================== */

.person-item {
    border: 1px solid var(--line2) !important;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line2);
    transition: 0.25s;
}

.person-item:hover {
    /* background:#fafafa; */

    transform: translateY(-2px);
}

.person-item:last-child {
    margin-bottom: 0;
}

.person-item h6 {
    color: var(--ink);

    font-weight: 700;

    margin-bottom: 3px;
}

.person-item small {
    color: var(--muted);
}

.person-item a {
    text-decoration: none;

    color: #69aee4;

    font-size: 0.95rem;
}

/* ===========================
   Person Icon
=========================== */

.person-icon {
    width: 46px;

    height: 46px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.2rem;

    background: rgba(255, 255, 255, 0.03);
}
.num-parvande {
    color: var(--body);
}
.title-parvande {
    background: var(--panelHi);
    border: 1px solid rgba(200, 155, 60, 0.28);
    border-radius: 18px;
    padding: 24px;
}
.card-parvande-1 {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
}

.person-icon.green {
    background: #e3f8ea;

    color: #43b76b;
}

.person-icon.red {
    background: #fde8e8;

    color: #e66c6c;
}

.person-icon.blue {
    background: #e4f2fb;

    color: #69aee4;
}

/* ===========================
   Documents
=========================== */

.document-card {
    border-radius: 18px;

    overflow: hidden;

    transition: 0.3s;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.03);
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-preview {
    height: 130px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 3rem;
}

.document-preview.pdf {
    background: #faeaea;

    color: #e37d73;
}

.document-preview.image {
    background: #dcecf2;

    color: #69bee3;
}

.document-preview.image2 {
    background: #f8f2e4;

    color: #e2b84f;
}

.document-body {
    padding: 16px;

    text-align: center;
}

.document-body h6 {
    color: var(--ink);

    margin-bottom: 6px;

    font-weight: 700;
}

.document-body small {
    color: var(--muted);
}

/* ===========================
   Upload Button
=========================== */

.btn-outline-warning {
    border-radius: 14px;

    border-color: var(--primary);

    color: var(--primary);

    padding-inline: 18px;
}

.btn-outline-warning:hover {
    background: var(--btn);

    border-color: transparent;

    color: #111;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 992px) {
    .case-title {
        font-size: 1.6rem;
    }

    .case-meta {
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .case-header .card-body {
        padding: 22px;
    }

    .case-title {
        font-size: 1.35rem;

        text-align: center;
    }

    .case-meta {
        justify-content: center !important;
    }

    .section-title {
        justify-content: center;
    }

    .person-item {
        text-align: center;
    }

    .person-item .row {
        row-gap: 15px;
    }

    .btn-outline-warning {
        width: 100%;

        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .document-preview {
        height: 110px;

        font-size: 2.5rem;
    }

    .document-body {
        padding: 12px;
    }

    .case-title {
        font-size: 1.2rem;
    }
}
/* ======================================
    Dashboard Cards
====================================== */

.dashboard-card {
    background: var(--panel);
    border-radius: 24px;
    transition: 0.35s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.dashboard-card .card-body {
    padding: 28px;
}

/* ======================================
    Icons
====================================== */

.dashboard-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dashboard-icon.success {
    background: #e8f9ef;
    color: #2ecc71;
}

.dashboard-icon.danger {
    background: #fdeceb;
    color: #ef6b63;
}

.dashboard-icon.warning {
    background: #fff5df;
    color: #d7a73b;
}

.dashboard-icon.info {
    background: #e7f4fb;
    color: #69b4df;
}
/* مالی */
/* ======================================
    Numbers
====================================== */

.dashboard-value {
    font-size: 34px;

    font-weight: 700;

    color: var(--ink);

    margin-bottom: 6px;
}
.Reports-and-Printing {
    width: 40%;
    border-radius: 14px;
    border: 1px solid var(--body);
    background: rgb(127, 199, 222, 0.1);
}
.Reports-and-Printing:hover {
    background: rgb(127, 199, 222, 0.2);
}
.Reports-and-Printing a {
    color: var(--muted);
}
.Invoice {
    width: 40%;
    border-radius: 14px;
    background: rgb(227, 199, 122, 0.1);
    border: 1px solid var(--primary);
}
.Invoice:hover {
    background: rgb(227, 199, 122, 0.2);
}
.Invoice a {
    color: var(--primary);
}

.dashboard-label {
    color: var(--muted);

    font-size: 15px;
}

/* ======================================
    Section Title
====================================== */

.section-title {
    color: var(--ink);

    font-weight: 700;

    font-size: 28px;
}

/* ======================================
    Progress
====================================== */

.progress-custom {
    height: 7px;

    border-radius: 50px;

    background: #ececec;

    overflow: hidden;
}

.progress-custom .progress-bar {
    background: #3b89a5;

    border-radius: 50px;
}

/* ======================================
    Table
====================================== */

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);

    font-weight: 500;

    font-size: 15px;

    background: var(--panel);

    border-bottom: 1px solid var(--line);

    padding: 18px 14px;
}

.table tbody td {
    padding: 18px 14px;

    background: var(--panel);

    color: var(--ink);

    border-color: var(--line2);

    vertical-align: middle;
}
.text-ink {
    color: var(--ink);
}
.text-body {
    color: var(--body) !important;
}
.table-hover tbody tr {
    transition: 0.25s;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.45);
}

.table td.text-success {
    color: #2ecc71 !important;
}

.table td.text-danger {
    color: #ef6b63 !important;
}

/* ======================================
    Button
====================================== */

.btn-dashboard {
    background: var(--btn);

    border: none;

    color: #111;

    font-weight: 700;

    border-radius: 14px;

    padding: 12px 24px;

    transition: 0.3s;
}

.btn-dashboard:hover {
    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(215, 167, 59, 0.35);

    color: #111;
}
.div-type-peyment {
    width: 33%;
}
.mali-create {
    width: 100%;
    cursor: pointer;
    flex: 1 1 0%;
    text-align: center;
    font-size: 13.5px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(200, 155, 60, 0.4);
    color: rgb(227, 199, 122);
    background: transparent;
}
.mali-modal {
    border: 1px solid var(--primary);
    background: var(--panel);
    width: 60% !important;
    margin: 0 auto;
}
.mali-create-active {
    background: var(--primary);

    color: var(--ink);

    font-weight: 700;
}
/* ======================================
    Chart
====================================== */

canvas {
    width: 100% !important;
}

/* ======================================
    Responsive
====================================== */

@media (max-width: 1200px) {
    .dashboard-value {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .mali-modal {
        width: 100% !important;
    }
    .div-type-peyment {
        width: 100%;
    }
    .dashboard-card .card-body {
        padding: 22px;
    }

    .table {
        min-width: 850px;
    }
}

@media (max-width: 768px) {
    .dashboard-value {
        font-size: 24px;
    }

    .section-title {
        font-size: 21px;
    }

    .btn-dashboard {
        width: 100%;

        margin-top: 15px;
    }

    .dashboard-card {
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .dashboard-card .card-body {
        padding: 18px;
    }

    .dashboard-value {
        font-size: 22px;
    }

    .dashboard-label {
        font-size: 14px;
    }

    .dashboard-icon {
        width: 46px;

        height: 46px;

        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }
}
/* ==========================================
    Profile Header
========================================== */

.profile-header {
    background: var(--panelHi);

    border: 1px solid rgba(215, 167, 59, 0.25);

    border-radius: 28px;

    transition: 0.3s;
}

.profile-header:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.profile-header .card-body {
    padding: 32px;
}

/* ==========================================
    Avatar
========================================== */

.profile-avatar {
    width: 96px;

    height: 96px;

    border-radius: 24px;

    background: linear-gradient(135deg, #d7a73b, #2e7c97);

    color: #fff;

    font-size: 46px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    user-select: none;
}

/* ==========================================
    Name
========================================== */

.profile-name {
    color: var(--ink);

    font-size: 40px;

    font-weight: 800;
}

.profile-job {
    color: #3d8fc0;

    font-size: 19px;

    font-weight: 500;
}

.profile-meta {
    color: var(--body);

    font-size: 15px;
}

.profile-meta i {
    color: var(--primary);

    margin-left: 6px;
}

/* ==========================================
    Badge
========================================== */

.profile-badge {
    background: #e6faec;

    color: #38bf72;

    border-radius: 40px;

    padding: 0.55rem 1rem;

    font-size: 0.9rem;

    font-weight: 600;
}

/* ==========================================
    Button
========================================== */

.btn-profile {
    background: var(--btn);

    border: none;

    color: #111;

    font-weight: 700;

    border-radius: 16px;

    padding: 13px 24px;

    transition: 0.3s;
}

.btn-profile:hover {
    color: #111;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(215, 167, 59, 0.35);
}

/* ==========================================
    Cards
========================================== */

.profile-card {
    background: var(--panel);

    border-radius: 26px;

    transition: 0.3s;
}

.profile-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.profile-card .card-body {
    padding: 30px;
}

/* ==========================================
    About
========================================== */

.about-text {
    color: var(--body);

    line-height: 2.2;

    font-size: 16px;
}

/* ==========================================
    Alert
========================================== */

.profile-alert {
    border-radius: 18px;

    border: 1px solid rgba(46, 124, 151, 0.25);

    background: rgba(46, 124, 151, 0.08);

    color: var(--body);

    padding: 18px 22px;
}

.profile-alert i {
    color: #66b9e6;

    font-size: 22px;
}

/* ==========================================
    Upload
========================================== */

.upload-card {
    background: var(--panel);
    border: 2px dashed rgba(200, 155, 60, 0.4) !important;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.upload-card:hover {
    border-color: var(--primary);

    background: var(--hover);
}

.upload-card .card-body {
    padding: 55px 30px;
}

.upload-icon {
    font-size: 56px;

    color: var(--primary);
}

/* ==========================================
    Info List
========================================== */

.info-item {
    border: none !important;

    border-bottom: 1px solid var(--line2) !important;

    padding: 22px 0;
}

.info-item:last-child {
    border-bottom: none !important;
}

.info-value {
    font-size: 18px;

    font-weight: 600;

    color: var(--ink);
}

/* ==========================================
    Icons
========================================== */

.info-icon {
    width: 42px;

    height: 42px;

    border-radius: 14px;

    border: 1px solid rgba(215, 167, 59, 0.35);

    display: flex;

    justify-content: center;

    align-items: center;

    color: var(--primary);

    font-size: 18px;
}

/* ==========================================
    Upload Button
========================================== */

.btn-outline-warning {
    border-radius: 14px;

    border-color: var(--primary);

    color: var(--primary);

    padding-inline: 20px;
}

.btn-outline-warning:hover {
    background: var(--btn);

    color: #111;

    border-color: transparent;
}

/* ==========================================
    Responsive
========================================== */

@media (max-width: 992px) {
    .profile-name {
        font-size: 32px;
    }

    .profile-avatar {
        width: 82px;

        height: 82px;

        font-size: 38px;
    }

    .profile-header .card-body {
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-header .card-body {
        padding: 24px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-job {
        font-size: 16px;
    }

    .profile-avatar {
        margin: auto;
    }

    .btn-profile {
        width: 100%;
    }

    .info-item .row {
        row-gap: 12px;

        text-align: center;
    }

    .info-icon {
        margin: auto;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 70px;

        height: 70px;

        font-size: 30px;

        border-radius: 18px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-card .card-body {
        padding: 22px;
    }

    .upload-card .card-body {
        padding: 35px 20px;
    }

    .about-text {
        font-size: 15px;

        line-height: 2;
    }
}
/* ثبت لایحه */
/* ---------- Alert ---------- */

.page-alert {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 18px;

    padding: 16px 24px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 12px;

    color: var(--body);

    font-size: 15px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.page-alert i {
    color: var(--primary);

    font-size: 20px;
}

/* ---------- Card ---------- */

.lawsuit-card {
    background: var(--panel);

    border-radius: 28px;

    padding: 40px;

    border: 1px solid var(--line);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 34px;

    font-weight: 800;

    color: var(--ink);
}

/* ---------- Labels ---------- */

.form-label {
    font-weight: 600;

    color: var(--body);

    margin-bottom: 10px;
}

/* ---------- Fields ---------- */

.custom-field {
    background: var(--field) !important;

    border: 1px solid var(--fieldBorder);

    border-radius: 14px;

    min-height: 56px;

    color: var(--ink);

    padding-inline: 18px;

    transition: 0.3s;
}
.form-control:focus {
    color: var(--ink);
}
.custom-field::placeholder {
    color: var(--muted);
}

.custom-field:focus {
    /* background: #fff; */

    border-color: var(--primary);

    box-shadow: 0 0 0 0.2rem rgba(215, 167, 59, 0.15);
}

.textarea-field {
    min-height: 260px !important;

    resize: vertical;

    padding-top: 16px;
}

/* ---------- AI Button ---------- */

.btn-ai {
    background: transparent;

    border: 1px solid var(--primary);

    color: var(--primary);

    border-radius: 14px;

    padding: 12px 22px;

    font-weight: 700;

    transition: 0.3s;
}

.btn-ai:hover {
    background: rgba(215, 167, 59, 0.08);

    color: var(--primary);
}

/* ---------- Save ---------- */

.btn-save-parvande {
    cursor: pointer;
    border: 1px solid rgba(200, 155, 60, 0.45);
    color: rgb(227, 199, 122);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 12px;
}

.btn-save-parvande:hover {
    transform: translateY(-2px);
    border: 1px solid rgba(200, 155, 60, 0.45);
    background: rgba(200, 155, 60, 0.1);
    color: rgb(227, 199, 122);
}
.btn-save-parvande-and {
    cursor: pointer;
    background: linear-gradient(100deg, rgb(227, 199, 122), rgb(200, 155, 60));
    color: rgb(12, 21, 36);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 44px;
    border-radius: 12px;
}
.btn-save-parvande-and:hover {
    filter: brightness(1.06);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .lawsuit-card {
        padding: 24px;
    }

    .page-title {
        font-size: 26px;
    }

    .btn-ai {
        width: 100%;
    }
}
/* view-layehe */
.panel-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    height: 750px;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Header
=========================== */

.panel-header {
    background: var(--panelHi);

    border-bottom: 1px solid var(--line);

    padding: 18px 24px;

    display: flex;

    flex-direction: row-reverse;

    align-items: center;

    justify-content: space-between;
}

.pdf-title {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

    font-weight: 700;

    color: var(--ink);
}

.pdf-title i {
    color: #dc3545;

    font-size: 28px;
}

/* ===========================
   Buttons
=========================== */

.icon-btn {
    width: 46px;

    height: 46px;

    border-radius: 14px;

    background: var(--field);

    border: 1px solid var(--fieldBorder);

    display: flex;

    justify-content: center;

    align-items: center;

    transition: 0.3s;

    color: var(--body);
}

.icon-btn:hover {
    background: var(--hover);

    transform: translateY(-2px);
}

.icon-btn.primary {
    background: var(--btn);

    color: #fff;

    border: none;
}

.icon-btn.primary:hover {
    box-shadow: 0 10px 20px rgba(215, 167, 59, 0.25);
}

/* ===========================
   PDF Viewer
=========================== */

.pdf-viewer {
    flex: 1;

    background: #faf8f2;

    overflow: hidden;
}

.pdf-viewer iframe {
    width: 100%;

    height: 100%;

    border: none;
}

/* ===========================
   Right Card
=========================== */

.panel-content {
    flex: 1;

    overflow: auto;

    padding: 35px;
}

.panel-title {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 34px;

    font-weight: 800;

    margin-bottom: 30px;
}

.panel-title i {
    color: var(--primary);
}

.case-title {
    font-size: 24px;

    font-weight: 700;

    margin-bottom: 10px;
}

.case-meta {
    color: var(--muted);

    font-size: 15px;
}

.mokateme-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(46, 124, 151, 0.5);
    color: rgb(127, 199, 222);
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 10px;
}
.mokateme-link:hover {
    background: rgba(46, 124, 151, 0.2);
}

.document-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(200, 155, 60, 0.45);
    color: rgb(227, 199, 122);
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 10px;
}
.document-link:hover {
    background: rgba(200, 155, 60, 0.2);
}

.case-info {
    margin-bottom: 35px;
}

.case-info span {
    display: block;

    color: var(--muted);

    margin-bottom: 8px;
}

.case-info strong {
    display: block;

    color: var(--ink);

    font-size: 18px;
}

.article-text {
    line-height: 2.3;

    font-size: 17px;

    color: var(--body);
}

.article-text p {
    margin-bottom: 25px;
}

/* ===========================
   Scrollbar
=========================== */

.panel-content::-webkit-scrollbar,
.pdf-viewer::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-thumb,
.pdf-viewer::-webkit-scrollbar-thumb {
    background: var(--primary);

    border-radius: 30px;
}

.panel-content::-webkit-scrollbar-track,
.pdf-viewer::-webkit-scrollbar-track {
    background: transparent;
}

/* ===========================
   PDF Placeholder
=========================== */

.pdf-placeholder {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    color: var(--muted);

    gap: 20px;
}

.pdf-placeholder i {
    font-size: 70px;

    color: var(--primary);
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 1200px) {
    .panel-card {
        height: auto;

        min-height: 650px;
    }
}

@media (max-width: 992px) {
    .panel-card {
        min-height: 550px;
    }

    .panel-title {
        font-size: 28px;
    }

    .case-title {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .panel-header {
        padding: 16px;

        flex-wrap: wrap;

        gap: 15px;
    }

    .pdf-title {
        font-size: 18px;
    }

    .panel-content {
        padding: 22px;
    }

    .panel-title {
        font-size: 24px;
    }

    .article-text {
        font-size: 15px;

        line-height: 2;
    }
}

@media (max-width: 576px) {
    .icon-btn {
        width: 42px;

        height: 42px;
    }

    .panel-card {
        border-radius: 20px;
    }

    .case-title {
        font-size: 18px;
    }

    .case-meta {
        font-size: 14px;
    }
}
/* indexLayehe */
.category-title {
    font-size: 17px;

    color: var(--body);

    font-weight: 600;
}

.law-category {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 22px;

    min-height: 105px;

    padding: 24px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    text-decoration: none;

    transition: 0.35s;

    position: relative;

    overflow: hidden;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.law-category span {
    color: var(--ink);

    font-size: 20px;

    font-weight: 700;
}

.category-icon {
    width: 58px;

    height: 58px;

    border-radius: 18px;

    background: var(--field);

    border: 1px solid rgba(215, 167, 59, 0.35);

    display: flex;

    justify-content: center;

    align-items: center;

    transition: 0.35s;

    flex-shrink: 0;
}

.category-icon i {
    color: var(--primary);

    font-size: 28px;
}

.law-category:hover {
    text-decoration: none;

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow: 0 18px 35px rgba(215, 167, 59, 0.18);
}

.law-category:hover .category-icon {
    background: var(--btn);

    transform: rotate(-8deg) scale(1.05);
}

.law-category:hover .category-icon i {
    color: #fff;
}

.law-category::before {
    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: rgba(215, 167, 59, 0.06);

    left: -90px;

    bottom: -90px;

    transition: 0.4s;
}

.law-category:hover::before {
    transform: scale(1.4);
}

@media (max-width: 992px) {
    .law-category {
        min-height: 90px;

        padding: 20px;
    }

    .law-category span {
        font-size: 18px;
    }

    .category-icon {
        width: 52px;

        height: 52px;
    }
}

@media (max-width: 576px) {
    .law-category {
        min-height: 82px;

        border-radius: 18px;
    }

    .law-category span {
        font-size: 16px;
    }

    .category-icon {
        width: 46px;

        height: 46px;

        border-radius: 14px;
    }

    .category-icon i {
        font-size: 22px;
    }
}
/* news/blogs */
.news-tabs {
    gap: 10px;
}

.news-tabs .nav-link {
    border-radius: 30px;
    padding: 0.7rem 1.6rem;
    color: var(--primary);
    border: 1px solid rgba(215, 167, 59, 0.35);
    background: transparent;
}

.news-tabs .nav-link.active {
    background: var(--btn);
    color: #fff;
    border: none;
}
.text-muted {
    color: var(--muted) !important;
}
.modal-content {
    background-color: unset !important;
}

.btn-add-news {
    background: var(--btn);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blogs-index {
    display: none;
}

.newAll-index {
    display: none;
}
.news-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.news-image {
    position: relative;
    height: 230px;
    background: var(--panelHi);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status {
    position: absolute;
    top: 18px;
    left: 18px;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.success {
    background: #4fd08c;
}

.warning {
    background: #c7a64a;
}

.danger {
    background: #dd6a6a;
}

.news-body {
    padding: 24px;
}

.badge-category {
    background: rgba(46, 124, 151, 0.16);
    color: rgb(127, 199, 222);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.news-body h5 {
    line-height: 2;
    font-size: 20px;
    color: var(--ink);
    min-height: 85px;
}

.news-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.news-body small {
    color: var(--muted);
}
@media (max-width: 992px) {
    .news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .btn-add-news {
        width: 70%;
        justify-content: center;
    }

    .container-fluid > .d-flex {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .news-tabs {
        width: 100%;
        justify-content: center;
    }
}
/* create news */

.news-alert {
    background: rgba(46, 124, 151, 0.08);
    border: 1px solid rgba(46, 124, 151, 0.18);
    color: var(--body);
    border-radius: 16px;
    padding: 14px 22px;
}

.news-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 35px;
}

.panel-title {
    color: var(--ink);
    font-weight: 700;
}

.panel-subtitle {
    color: var(--muted);
    margin-top: 5px;
}

.form-label {
    color: var(--body);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    background: var(--field) !important;
    border: 1px solid var(--fieldBorder) !important;
    border-radius: 14px;
    height: 52px;
    color: var(--ink) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    color: var(--ink) !important;
    box-shadow: 0 0 0 0.15rem rgba(215, 167, 59, 0.2) !important;
    background: var(--field) !important;
}

.textarea-lg {
    min-height: 170px !important;
    resize: vertical;
}

.textarea-sm {
    min-height: 110px !important;
    resize: vertical;
}

.upload-box {
    width: 100%;
    min-height: 180px;
    border: 2px dashed rgba(215, 167, 59, 0.4);
    border-radius: 18px;
    background: var(--panelHi);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: #fff8ea;
}

.upload-box i {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-box h6 {
    color: var(--ink);
    margin-bottom: 4px;
}

.upload-box small {
    color: var(--muted);
}

.upload-wrapper {
    position: relative;
}

.preview-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panelHi);
}

.preview-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.preview-box video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.preview-actions {
    position: absolute;
    left: 40%;
    bottom: 15px;
    display: flex;
    gap: 10px;
}

.preview-actions .btn {
    border-radius: 10px;
}
@media (max-width: 992px) {
    .news-panel {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .upload-box {
        min-height: 150px;
    }
}
/* معرفی شخص */
/*=========================
        PERSON FORM
=========================*/

.person-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 35px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
}

/*=========================
        INPUTS
=========================*/

.form-label {
    color: var(--body);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control::placeholder {
    color: var(--muted);
}

.person-textarea {
    height: 130px !important;
    resize: vertical;
    padding-top: 15px;
}
/*=========================
        BUTTONS
=========================*/

.person-buttons {
    margin-top: 35px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-panel {
    min-width: 210px;
    padding: 10px 20px;
    border: none;
    border-radius: 16px;
    background: var(--btn);
    color: var(--btn);
    font-weight: 600;
    transition: 0.25s;
}

.btn-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(215, 167, 59, 0.3);
}

.btn-outline-panel {
    min-width: 150px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--body);
}

.btn-outline-panel:hover {
    background: var(--field);
    color: var(--body);
}

.btn-outline-warning {
    min-width: 190px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(215, 167, 59, 0.4);
    background: transparent;
    color: var(--primary);
}

.btn-outline-warning:hover {
    background: rgba(215, 167, 59, 0.08);
    color: var(--ink);
}
/*=========================
            TABLE
=========================*/

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.table {
    margin: 0;
}

.table thead th {
    background: var(--panelHi);
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding: 18px;
}

.table tbody td {
    padding: 18px;
    color: var(--body);
    border-color: var(--line2);
}

.table tbody tr {
    transition: 0.25s;
}

.table tbody tr:hover {
    background: rgba(215, 167, 59, 0.04);
}
/*=========================
        ACTION BUTTONS
=========================*/

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    margin-left: 5px;
    transition: 0.25s;
    background: transparent;
}

.btn-action i {
    font-size: 16px;
}

.btn-action.blue {
    color: #3b82f6;
}

.btn-action.gold {
    color: var(--primary);
}

.btn-action.red {
    color: #ef4444;
}

.btn-action:hover {
    transform: translateY(-2px);
    background: var(--panelHi);
}
/*=========================
        RESPONSIVE
=========================*/

@media (max-width: 992px) {
    .person-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .person-buttons {
        flex-direction: column;
    }

    .person-buttons .btn {
        width: 100%;
    }

    .page-title {
        font-size: 24px;
    }

    .table {
        min-width: 700px;
    }
}
/* مقاله و اخبار */
.hero-image {
    overflow: hidden;
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.hero-image img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    display: block;
}

.hero-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 12.5px;
    color: var(--muted);
}

.meta-item i {
    color: var(--primary);
}

.news-badge {
    font-size: 12.5px;
    background: rgba(46, 124, 151, 0.16);
    color: rgb(127, 199, 222);
    padding: 4px 13px;
    border-radius: 999px;
}

.hero-title {
    max-width: 900px;
    color: var(--ink);
    /* font-size: clamp(2rem, 4vw, 3.6rem); */
    font-weight: 800;
    line-height: 1.45;
}

.hero-desc {
    max-width: 850px;
    color: var(--body);
    font-size: 1.15rem;
    line-height: 2.2;
}

@media (max-width: 992px) {
    .hero-image img {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        height: 250px;
    }
    .hero-meta {
        justify-content: center !important;
    }
}
/* مکاتبه و اسناد*/
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.add-mokatebe {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(100deg, rgb(227, 199, 122), rgb(200, 155, 60));
    color: rgb(12, 21, 36);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 11px;
}

.page-header h3 {
    color: var(--ink);
    font-weight: 700;
    margin: 0;
}

.text-primary {
    color: var(--primary) !important;
}

/*----------------*/

.back-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

/*----------------*/

.letter-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.letter-card {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 24px;

    padding: 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    transition: 0.3s;
}

.letter-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/*----------------*/

.letter-content {
    flex: 1;

    text-align: right;
}

.letter-content h5 {
    color: var(--ink);

    font-weight: 700;

    margin-bottom: 10px;
}

.letter-meta {
    color: var(--muted);
}

.outgoing {
    color: #19b96d;

    font-weight: 600;
}

.incoming {
    color: #4ea9f7;

    font-weight: 600;
}

/*----------------*/

.btn-view {
    width: 46px;

    height: 46px;

    border: none;

    border-radius: 14px;

    background: var(--panelHi);

    color: #5daee8;

    transition: 0.25s;
}
.btn-download {
    width: 46px;

    height: 46px;

    border: none;

    border-radius: 14px;

    background: var(--panelHi);

    color: rgb(227, 199, 122);

    transition: 0.25s;
}

.btn-view:hover {
    background: rgba(93, 174, 232, 0.12);
}

/*----------------*/

.letter-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.letter-icon .bi-filetype-pdf {
    font-size: 21px;
    color: rgb(224, 132, 126);
}

.letter-icon.outgoing,
.letter-icon .bi-filetype-exe {
    color: #21bf73;
}

.letter-icon.incoming {
    color: #5daee8 !important;
}
@media (max-width: 768px) {
    .letter-card {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    .letter-content {
        width: 100%;
    }
}
.letter-modal {
    background: var(--panel);
    border: 1px solid rgba(215, 167, 59, 0.25);
    border-radius: 28px;
    color: #fff;
    padding: 18px;
}

.modal-header {
    align-items: center;
}

.modal-title {
    color: var(--ink);
    font-size: 2rem;
}

.form-label {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-close-custom {
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    color: var(--muted);
}
.btn-close-custom:hover {
    color: var(--ink);
}

.save-btn {
    min-width: 230px;
    height: 62px;
    border: none;
    border-radius: 18px;
    background: var(--btn);
    color: var(--ink);
    font-weight: 700;
}

.save-btn:hover {
    transform: translateY(-2px);
    color: var(--ink);
}

.cancel-btn {
    min-width: 130px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    background: transparent;
}

.cancel-btn:hover {
    border-color: var(--primary);
    background: transparent;
    color: var(--muted);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    /* .save-btn,
    .cancel-btn {
      width: 100%;
    } */
}
/* اسناد */
/* =========================
   Modal
========================= */

.document-modal {
    background: var(--panel);
    border: 1px solid var(--primary);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.document-modal .modal-header {
    padding: 25px 30px;
}

.document-modal .modal-body {
    padding: 0 30px 30px;
}

.document-modal .modal-footer {
    padding: 25px 30px;
}

.document-modal h2 {
    color: var(--ink);
    font-size: 28px;
}

/* =========================
   Upload Card
========================= */

.upload-card {
    position: relative;
}

.file-input {
    display: none;
}

.upload-box {
    width: 100%;
    height: 240px;

    border: 2px dashed var(--fieldBorder);

    background: var(--panelHi);

    border-radius: 24px;

    cursor: pointer;

    transition: 0.35s;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    position: relative;
}

.upload-box:hover {
    border-color: var(--primary);

    background: #fff;

    transform: translateY(-4px);
}

.upload-empty {
    text-align: center;

    padding: 20px;
}

.upload-empty i {
    font-size: 52px;

    color: var(--primary);

    margin-bottom: 18px;
}

.upload-empty h6 {
    color: var(--ink);

    font-weight: 700;

    margin-bottom: 8px;
}

.upload-empty small {
    color: var(--muted);
}

/* =========================
   Preview
========================= */

.preview {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: white;
}

.preview-image {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

/* =========================
 File Preview
========================= */

.file-preview {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;

    text-align: center;
}

.file-preview i {
    font-size: 60px;

    color: var(--primary);
}

.file-name {
    font-size: 14px;

    color: var(--body);

    padding: 0 15px;

    word-break: break-word;
}

/* =========================
 Buttons
========================= */

.upload-actions {
    margin-top: 15px;

    display: flex;

    gap: 10px;
}

.upload-actions .btn {
    flex: 1;

    height: 44px;

    border-radius: 12px;

    font-weight: 600;
}

.edit-file {
    background: rgba(215, 167, 59, 0.15);

    color: var(--primary);

    border: none;
}

.edit-file:hover {
    background: var(--primary);

    color: #fff;
}

.delete-file {
    background: #fff3f3;

    color: #dc3545;

    border: none;
}

.delete-file:hover {
    background: #dc3545;

    color: #fff;
}

/* =========================
 Responsive
========================= */

@media (max-width: 992px) {
    .upload-box {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .document-modal .modal-body,
    .document-modal .modal-header,
    .document-modal .modal-footer {
        padding: 20px;
    }

    .upload-box {
        height: 190px;
    }
}
/* invoice */
.Invoice-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.section-title-invoice {
    color: var(--ink);
    font-weight: 700;
}

.payment-item-invoice {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px;

    border-radius: 18px;

    background: var(--panelHi);

    border: 1px solid var(--line);

    margin-bottom: 18px;

    transition: 0.3s;
}

.payment-item-invoice:hover {
    transform: translateY(-3px);

    background: white;
}

.payment-item-invoice.active {
    border: 2px solid var(--primary);
}

.payment-item-invoice h6 {
    margin-bottom: 4px;

    font-weight: 700;
}

.payment-item-invoice small {
    color: var(--muted);
}

.bank-info {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.bank-info small {
    color: var(--muted);

    display: block;

    margin-bottom: 6px;
}

.bank-info strong {
    color: var(--ink);
}

.status-badge {
    background: rgba(215, 167, 59, 0.15);

    color: var(--primary);

    padding: 8px 18px;

    border-radius: 30px;

    font-weight: 600;
}
.Invoice-badge {
    font-size: 11.5px;
    color: rgb(61, 220, 132);
    background: rgba(61, 220, 132, 0.14);
    padding: 4px 11px;
    border-radius: 999px;
}
.deactive {
    font-size: 11.5px;
    color: var(--muted);
    background: var(--panel);
    padding: 4px 11px;
    border-radius: 999px;
}

.price-box {
    border: 1px solid var(--line);

    border-radius: 18px;

    padding: 25px;

    background: var(--panelHi);
}

.price-box small {
    color: var(--muted);

    display: block;

    margin-bottom: 12px;
}

.price-box h4 {
    font-weight: 700;

    color: var(--ink);
}

.total-box {
    border: 2px dashed var(--primary);

    border-radius: 20px;

    padding: 28px;

    background: rgba(215, 167, 59, 0.08);
}

.total-box h2 {
    color: var(--primary);

    font-weight: 800;
}

.upload-img {
    border: 2px dashed var(--primary);

    border-radius: 20px;

    padding: 25px;

    background: var(--panelHi);

    text-align: center;
}

.btn-gold {
    background: var(--btn);

    border: none;

    color: #000;

    font-weight: 700;

    border-radius: 14px;

    padding: 15px;
}

.btn-gold:hover {
    opacity: 0.92;
}
/* یادآوری */
.yad-panel {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 26px;

    padding: 35px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.yad-title {
    font-size: 32px;

    font-weight: 800;

    color: var(--ink);
}

.textarea-custom {
    height: 160px;

    resize: vertical;

    padding-top: 15px;
}

@media (max-width: 992px) {
    .yad-panel {
        padding: 25px;
    }

    .yad-title {
        font-size: 24px;
    }
}
/* karmand */
.karmand-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
}

.employee-card {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 24px;

    padding: 28px;

    transition: 0.3s;

    height: 100%;
}

.employee-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.employee-avatar {
    width: 60px;

    height: 60px;

    border-radius: 18px;

    background: var(--btn);

    display: flex;

    justify-content: center;

    align-items: center;

    color: #fff;

    font-size: 28px;

    flex-shrink: 0;
}

.employee-name {
    font-size: 24px;

    font-weight: 700;

    color: var(--ink);

    margin-bottom: 5px;
}

.employee-role {
    color: var(--muted);
}

.employee-info {
    color: var(--body);
    font-weight: 500;
}
.employee-info i {
    color: var(--primary);
}

.btn-details {
    cursor: pointer;
    flex: 1 1 0%;
    text-align: center;
    background: linear-gradient(100deg, rgb(227, 199, 122), rgb(200, 155, 60));
    color: rgb(12, 21, 36);
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px;
    border-radius: 9px;
}

.btn-edit {
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(200, 155, 60, 0.45);
    color: rgb(227, 199, 122);
    font-size: 13.5px;
    padding: 9px 14px;
    border-radius: 9px;
}

.btn-edit:hover {
    background: rgba(215, 167, 59, 0.08);

    color: var(--primary);
}

.btn-delete {
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(224, 132, 126, 0.5);
    color: rgb(224, 132, 126);
    font-size: 13.5px;
    padding: 9px 14px;
    border-radius: 9px;
}

.btn-delete:hover {
    background: #dc3545;

    color: #fff;
}

@media (max-width: 768px) {
    .karmand-title {
        font-size: 26px;
    }

    .employee-card {
        padding: 22px;
    }
}
.detail-card {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 28px;

    padding: 30px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.karmand-view-title {
    color: var(--ink);

    font-size: 34px;

    font-weight: 800;
}

.info-box {
    background: var(--panelHi);

    border: 1px solid var(--line2);

    border-radius: 20px;

    padding: 24px;

    height: 100%;

    transition: 0.3s;
}

.info-box:hover {
    transform: translateY(-4px);

    border-color: rgba(215, 167, 59, 0.35);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.info-label {
    display: block;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}

.info-box h5 {
    margin: 0;

    color: var(--ink);

    font-weight: 700;

    font-size: 22px;
}

.status-active {
    display: inline-flex;

    align-items: center;

    padding: 6px 16px;

    border-radius: 30px;

    background: rgba(25, 135, 84, 0.12);

    color: #198754;

    font-weight: 700;
}

@media (max-width: 992px) {
    .karmand-view-title {
        font-size: 28px;
    }

    .detail-card {
        padding: 20px;
    }

    .info-box {
        padding: 18px;
    }

    .info-box h5 {
        font-size: 18px;
    }
}
/* وکلا */

/*========== Category ==========*/

.category-btn {
    height: 44px;

    padding: 0 22px;

    border-radius: 30px;

    border: 1px solid rgba(215, 167, 59, 0.35);

    background: transparent;

    color: var(--primary);

    font-weight: 600;

    transition: 0.3s;
}

.category-btn:hover {
    background: rgba(215, 167, 59, 0.1);

    color: var(--primary);
}

.category-btn.active {
    background: var(--btn);

    color: #fff;

    border-color: transparent;
}

/*========== Card ==========*/

.lawyer-card {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 24px;

    padding: 30px;

    height: 100%;

    transition: 0.35s;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.lawyer-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

/*========== Avatar ==========*/

.avatar {
    width: 64px;

    height: 64px;

    margin: auto;

    border-radius: 20px;

    background: var(--btn);

    display: flex;

    justify-content: center;

    align-items: center;

    color: #fff;

    font-size: 34px;

    font-weight: 700;
}

/*========== Name ==========*/

.lawyer-card h4 {
    color: var(--ink);

    font-size: 23px;

    font-weight: 700;
}

/*========== Verify ==========*/

.verify {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #28c76f;

    font-size: 15px;

    font-weight: 600;
}

.verify i {
    font-size: 15px;
}

/*========== Meta ==========*/

.lawyer-meta {
    display: flex;

    justify-content: center;

    gap: 22px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 15px;
}

.lawyer-meta span {
    display: flex;

    align-items: center;

    gap: 6px;
}

.lawyer-meta i {
    color: var(--primary);
}

/*========== Rating ==========*/

.rating {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 5px;

    margin-top: 15px;
}

.score {
    margin-left: 8px;

    color: var(--ink);

    font-weight: 700;
}

.rating i {
    color: #ffc107;

    font-size: 14px;
}

/*========== Buttons ==========*/

.profile-btn {
    width: 44px;

    height: 44px;

    border-radius: 14px;

    border: 1px solid rgba(215, 167, 59, 0.35);

    background: transparent;

    color: var(--primary);
}

.profile-btn:hover {
    background: rgba(215, 167, 59, 0.08);

    color: var(--primary);
}

.contact-btn {
    height: 44px;

    border: none;

    border-radius: 14px;

    background: var(--btn);

    color: #fff;

    font-weight: 700;
}

.contact-btn:hover {
    color: #fff;

    opacity: 0.95;
}

/*========== Responsive ==========*/

@media (max-width: 992px) {
    .lawyer-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .lawyer-meta {
        flex-direction: column;

        gap: 10px;

        align-items: center;
    }
}

@media (max-width: 576px) {
    .search-box {
        margin-bottom: 15px;
    }

    .lawyer-card {
        padding: 20px;
    }

    .avatar {
        width: 58px;

        height: 58px;

        font-size: 28px;
    }
}
