:root {
    --bg: #f1ebdd;
    --sidebar: linear-gradient(#ffffff, #f6f0e5);
    --panel: #ffffff;
    --panelHi: #fbf5e9;

    --ink: #14202e;
    --body: #3d4a5a;
    --muted: #6b7787;

    --select:#000000;

    --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;

    --select:#ffffff;

    --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: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    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 {
    width:100%;
    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) {
    .online-status{
        font-size:10px !important;
    }
    .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 {

    width:100%;
    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{
    display:none;
}
.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-input-box textarea::-webkit-scrollbar{
    width: 4px;

}
.chat-input-box textarea::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}

.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-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;
}
.highlight {
    background-color: var(--ink);
    color:var(--primary);
    border-radius: 4px;
    padding: 1px 2px;
}
.search-box.fixed {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.nav-buttons {
    display: flex;
    gap: 5px;
}
.nav-buttons button{
    width: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: 4px;
    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;
    height:90vh;
}

.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: 50px;
    height: 50px;
    border-radius: 16px;
    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: 18px;

    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;

    padding: 10px 20px;

    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: var(--field);

    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;
}
.table tbody td:hover{
    color: var(--ink);
    background: var(--panel)!important;
}
.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 {
    padding:20px;
    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: 100%;
    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;
    border: 1px solid rgba(46, 124, 151, 0.5);
    color: rgb(127, 199, 222);
    font-size: 14px;
    border-radius: 10px;
}
.mokateme-link:hover {
    background: rgba(46, 124, 151, 0.2);
}

.document-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid rgba(200, 155, 60, 0.45);
    color: rgb(227, 199, 122);
    font-size: 14px;
    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;
}

.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;
    right: 18px;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.view-btn ,.edit-btn , .delete-btn{
    background:var(--panelHi) !important;
    padding:10px;
    border-radius:12px;
}
.edit-btn:hover{
    color:#000000 !important;
}
.delete-btn:hover{
    color: rgba(154, 19, 19, 0.91) !important;
}


.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;
}
.menu-coming-soon{
    position: relative;
}

.coming-soon-badge{
    position: absolute;
    top: -8px;
    right: 50px;

    padding: 2px 8px;

    background: var(--btn);
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    border-radius: 50px;

    box-shadow: 0 4px 10px rgba(200,155,60,.25);

    line-height: 1.4;
    white-space: nowrap;
    animation: pulseBadge 1.8s infinite;
}
@keyframes pulseBadge{
    0%,100%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.08);
    }
}
.form-control,
.form-select {
    background: var(--field) !important;
    border: 1px solid var(--fieldBorder) !important;
    border-radius: 14px;
    /*height: 52px;*/
    color: var(--body)!important;
}
.form-control:focus {
    background: var(--field) !important;
    border: 1px solid var(--fieldBorder) !important;
    border-radius: 14px;
    /*height: 52px;*/
    color: var(--body)!important;
}
.form-select:focus{
    background: var(--field) !important;
    border: 1px solid var(--fieldBorder) !important;
    border-radius: 14px;
    /*height: 52px;*/
    color: var(--ink) !important;
}
.help-block{
    color:red;
}
.dark .form-select:focus{
    background: rgba(0, 0, 0, 0.72) !important;
}
.ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;

    width: fit-content;

    padding: 12px 18px;

    background: var(--panelHi);
    border: 1px solid var(--line);

    border-radius: 18px;

    margin: 10px 0;
}

.ai-typing span {

    width: 8px;
    height: 8px;

    background: var(--primary);

    border-radius: 50%;

    animation: aiTyping 1.4s infinite;
}


.ai-typing span:nth-child(2){
    animation-delay: .2s;
}

.ai-typing span:nth-child(3){
    animation-delay: .4s;
}


@keyframes aiTyping {

    0%,60%,100%{
        transform: translateY(0);
        opacity:.4;
    }

    30%{
        transform: translateY(-7px);
        opacity:1;
    }
}
/* مکاتبه و اسناد*/
.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) !important;
    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;
}
/*ارتباط با موکلین*/

.chat-container {
    height: 90vh;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
}
.cursor-pointer{
    cursor:pointer !important;
}
/* Sidebar Panel */
.sidebar-panel {
    border-inline-start: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}
.sidebar-panel::-webkit-scrollbar {
    width: 6px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}

.search-box input {
    background-color: var(--field);
    border: 1px solid var(--fieldBorder);
    border-radius: 12px;
    padding-right: 40px;
    height: 48px;
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

/* Contact List */
.contact-item {
    cursor: pointer;
    border-bottom: 1px solid var(--line2);
}
.contact-item.active span{
    color: var(--body);
}

.contact-item:hover,
.contact-item.active {
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--line2);
    background: rgba(200, 155, 60, 0.1);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Specific Avatar Colors based on Image */
.bg-rafdین {
    background-color: #aa905a;
}
.bg-sara {
    background-color: #1f6482;
}
.bg-ahmad {
    background-color: #bf8d47;
}
.bg-noor {
    background-color: #cc8b33;
}
.bg-omar {
    background-color: #177a87;
}

.status-badge {
    width: 12px;
    height: 12px;
    bottom: 0;
    right: 0;
}

.unread-badge {
    background-color: #d89f38 !important;
    color: white !important;
    font-size: 10px;
    padding: 5px 8px;
}

.badge.bg-gold-light {
    background-color: #f7eed7;
    color: #c09438 !important;
    border-radius: 6px;
}

.badge.bg-colleague {
    background-color: #d5e9f1;
    color: #3b88a8 !important;
    border-radius: 6px;
}

/* Chat Main */
.chat-main {
    height: 100%;
}

.chat-header-vakil {
    height: 70px;
}

.avatar-header {
    width: 45px;
    height: 45px;
    background-color: #aa905a;
    color: white;
    font-weight: bold;
}

.online-status {
    font-size: 12px;
    color: #48a66a;
}

.header-btn {
    background-color: #e9eff5;
    border-radius: 10px;
    color: #557597;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Share Bar */
.info-share-bar {
    background: rgba(46, 124, 151, 0.08);
    border-bottom: 1px solid var(--line);
}
.info-share-bar span {
    color: var(--body);
}

.btn-invite {
    background: var(--btn);
    color: var(--ink);
    font-weight: bold;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    padding: 8px 16px;
}

.btn-share {
    background-color: transparent;
    color: #bf8d47;
    border: 1px solid #bf8d47;
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 16px;
}

/* Chat Messages */
.chat-messages {
    overflow: auto;
    padding: 20px 20px 0;
}
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d7b45d;
    border-radius: 10px;
}

.message-row {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 70%;
}

.received .message-bubble {
    /* background-color: #ffffff; */
    color: var(--ink);
    border-top-right-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sent .message-bubble {
    /* background-color: #fcf5e9; */
    color: var(--ink);
    border-top-left-radius: 4px;
    margin-right: auto;
}

.message-time {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    padding: 0 5px;
}

/* Attachment Styles */
.pdf-attachment {
    border: 1px solid var(--ink);
    border-radius: 16px;
    /* background-color: #fcfbfa; */
}

.btn-download {
    background-color: #ebdcb9;
    color: #d7a73b;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-icon-box {
    background-color: #f0f6fa;
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-tag {
    font-size: 9px;
    font-weight: bold;
    color: #3b88a8;
    margin-top: -2px;
}

/* Helpers */
.fs-7 {
    font-size: 13px;
}
.fs-8 {
    font-size: 11px;
}
/* Chat Footer & Input Styles */
.chat-footer-vakil {
    height: 80px;
}

.chat-input {
    background-color: var(--field);
    border: 1px solid var(--fieldBorder);
    border-radius: 12px;
    height: 50px;
    padding: 0 15px;
}

.chat-input:focus {
    box-shadow: none;
    border-color: var(--primary);
    background-color: #fff;
}

.btn-icon-vakil {
    border: none;
    background: transparent;
    transition: 0.2s;
}

.btn-icon-vakil:hover {
    background-color: var(--hover);
    border-radius: 10px;
}

.send-btn-vakil {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn); /* از متغیر گرادینت شما استفاده شده */
    border: none;
    box-shadow: 0 4px 6px rgba(215, 167, 59, 0.2);
}

.send-btn-vakil:hover {
    filter: brightness(1.1);
}
/*کارمند ها*/
.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 label{
    color:var(--ink);
}

.info-box:hover {

    transform: translateY(-4px);

    background: var(--panelHi) !important;

    border-color: rgba(215, 167, 59, 0.35);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.info-box:hover .text-body{
    color:var(--ink) !important;
}

.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;
    }
}
/*نمایش قانون تکی*/
.laws-header {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 35px;
    transition: 0.3s;
}

.laws-header:hover {
    border-color: rgba(215, 167, 59, 0.3);
}

.laws-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panelHi);
    border: 1px solid rgba(215, 167, 59, 0.35);
}

.laws-icon i {
    font-size: 32px;
    color: var(--primary);
}

.laws-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.8;
}

.laws-meta {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.laws-meta span {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.countrys {
    background: rgba(215, 167, 59, 0.12);
    color: var(--primary) !important;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 14px;
}

/*============================
    SEARCH
============================*/

/*============================
  TITLE + BUTTONS
============================*/

.sections-title {
    font-weight: 700;
    color: var(--ink);
}

.sections-title span {
    color: #4d88c9;
    font-size: 28px;
}

.views-buttons {
    display: flex;
    gap: 12px;
}

.btns-law {
    cursor: pointer;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(200, 155, 60, 0.4);
    color: rgb(227, 199, 122);
    background: transparent;
}
.active1 {
    background: linear-gradient(
            100deg,
            rgb(227, 199, 122),
            rgb(200, 155, 60)
    );
    color: rgb(12, 21, 36);
}

.btns-law:hover {
    transform: translateY(-2px);
    background: linear-gradient(
            100deg,
            rgb(227, 199, 122),
            rgb(200, 155, 60)
    ) !important;
    color: rgb(12, 21, 36) !important;
}

.btns-outline-law {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid rgba(200, 155, 60, 0.4) !important;
    padding: 12px 26px !important;
    border-radius: 999px !important;
}

.btns-outline-law:hover {
    background: rgba(215, 167, 59, 0.08);
    color: var(--primary);
}
/*==================================
        LAW CARD
===================================*/

.laws-card-one {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: 0.35s;
}

.laws-card-one:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.laws-card-head {
    padding: 18px 28px;
    background: var(--panelHi);
}
.laws-card-head div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(200, 155, 60, 0.12);
    border: 1px solid rgba(200, 155, 60, 0.3);
    color: rgb(227, 199, 122);
    font-size: 13.5px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
}

.laws-card-head span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.laws-card-head i {
    font-size: 20px;
}

.laws-card-body {
    padding: 0 35px 35px 35px;
    color: var(--body);
    line-height: 2.6;
    font-size: 17px;
    text-align: justify;
}

.laws-card-body p:last-child {
    margin-bottom: 0;
}
/*=============================
        Pagination
=============================*/

.custom-pagination{

    gap:12px;

    margin:0;

}

.custom-pagination .page-item{

    list-style:none;

}

.custom-pagination .page-link{

    width:46px;

    height:46px;

    padding:0;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:14px !important;

    border:1px solid var(--line);

    background:var(--panel);

    color:var(--ink);

    font-weight:700;

    transition:.3s;

    box-shadow:none;

}

.custom-pagination .page-link:hover{

    background:var(--panelHi);

    border-color:var(--primary);

    color:var(--primary);

    transform:translateY(-2px);

}

.custom-pagination .page-item.active .page-link{

    background:var(--btn);

    border-color:transparent;

    color:#fff;

    box-shadow:0 8px 18px rgba(215,167,59,.25);

}

.custom-pagination .page-item.disabled .page-link{

    background:var(--field);

    color:var(--muted);

    border-color:var(--line);

    opacity:.6;

    pointer-events:none;

}

.custom-pagination .page-link:focus{

    box-shadow:0 0 0 .2rem rgba(215,167,59,.15);

}

@media (max-width:576px){

    .custom-pagination{

        gap:8px;

    }

    .custom-pagination .page-link{

        width:40px;

        height:40px;

        font-size:14px;

    }

}
/*==================================
          NOTES
===================================*/

.notess-card {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 24px;

    padding: 35px;
}

.notess-title {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--primary);

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 25px;
}

.notess-title i {
    font-size: 24px;
}

.notess-card ol {
    padding-right: 20px;

    margin: 0;
}

.notess-card li {
    color: var(--body);

    line-height: 2.4;
}
/*==================================
        EFFECTS
===================================*/

.btns-law,
.btns-outline-law,
.laws-card-one,
.laws-header {
    transition: 0.3s ease;
}

.btns-law:hover {
    box-shadow: 0 12px 30px rgba(215, 167, 59, 0.28);
}

.btns-outline-law:hover {
    transform: translateY(-2px);
}
/*==================================
        RESPONSIVE
===================================*/

@media (max-width: 992px) {
    .laws-header {
        padding: 25px;
    }

    .laws-title {
        font-size: 28px;
        margin-top: 20px;
    }

    .laws-card-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .laws-header {
        text-align: center;
    }

    .laws-icon {
        margin: auto auto 20px;
    }

    .laws-meta {
        justify-content: center;
    }

    .views-buttons {
        width: 100%;
        margin-top: 20px;
    }

    .views-buttons .btn {
        flex: 1;
    }

    .laws-pagination {
        flex-direction: column;
    }

    .pages-number {
        width: 100%;
    }

    .laws-card-body {
        font-size: 15px;
        line-height: 2.3;
    }

    .notess-card {
        padding: 22px;
    }
}

@media (max-width: 576px) {
    .laws-title {
        font-size: 22px;
    }

    .searchs-box input {
        height: 55px;

        padding-right: 55px;
    }

    .searchs-box i {
        right: 18px;
    }

    .laws-card-head {
        padding: 15px 18px;
    }

    .laws-card-body {
        padding: 18px;
    }
}
.fulls-law-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 35px;
}

.fulls-law-body {
    line-height: 2.8;
    text-align: justify;
}

.fulls-law-body p {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--body);
}

.articles-number {
    color: var(--primary);
    font-weight: 700;
}
/*news*/
/* مقاله و اخبار */
.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;
    }
}
/*=========================
        PERSON FORM
=========================*/

.person-card , .grid-view {
    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;
    padding: 10px 20px;
    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;
    }
}
/*پروفایل وکلا*/
.page-wrap {
    padding: 32px 24px 18px;
}

.topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.search-shell {
    width: 100%;
    max-width: 580px;
    position: relative;
}

.search-shell .form-control {
    height: 60px;
    border-radius: 20px;
    background: rgba(16, 25, 40, 0.75);
    border: 1px solid var(--fieldBorder);
    color: var(--ink);
    padding-right: 52px;
    padding-left: 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.search-shell .form-control::placeholder {
    color: #8d98aa;
}

.search-shell .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8494aa;
    font-size: 1.2rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.category-tabs .tab-btn {
    border: 1px solid rgba(219, 176, 74, 0.45);
    color: var(--ink);
    background: transparent;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 0.95rem;
    transition: .25s ease;
}

.category-tabs .tab-btn:hover {
    background: rgba(201, 154, 46, 0.1);
    color: #fff7de;
}

.category-tabs .tab-btn.active {
    background: linear-gradient(90deg, #efd47a, #d7aa42);
    color: #1b1f28;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(215, 170, 66, 0.22);
}

.lawyer-card {
    background: var(--panel);
    border: 1px solid var(--primary);
    border-radius:14px;
    padding: 30px 28px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lawyer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%);
    pointer-events: none;
}

.avatar-box {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    color: #fffdf3;
    background:
            linear-gradient(135deg, #d1a73b 0%, #d8c67a 45%, #62aeb4 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.avatar-box img{
    object-fit: cover;
    border-radius: 26px;
}

.lawyer-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.lawyer-name .verify {
    color: #31d17c;
    font-size: 1rem;
}

.lawyer-specialty {
    color: #7ab8d8;
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.lawyer-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--body);
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.lawyer-meta i {
    color: #d5a844;
    margin-left: 6px;
}

.rating-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--body);
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.stars {
    color: #e0b34a;
    letter-spacing: 2px;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(214, 170, 72, 0.35);
    background: transparent;
    color: #dcb55a;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex: 0 0 54px;
}

.contact-btn {
    flex: 1;
    height: 54px;
    border: 0;
    border-radius: 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1b1d21;
    background: linear-gradient(90deg, #f0d67b, #d3a53a);
    box-shadow: 0 10px 20px rgba(211, 165, 58, 0.22);
    transition: 0.3s;
}
.contact-btn:hover{
    color:#1b1d21 !important;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .lawyer-name {
        font-size: 1.45rem;
    }

    .lawyer-specialty {
        font-size: 1.1rem;
    }
}


/* =========================================================
   Main Hero
========================================================= */

.lawyer-hero {
    position: relative;
    overflow: hidden;

    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 24px;

    margin-bottom: 24px;

    box-shadow:
            0 10px 35px rgba(20, 32, 46, 0.06);
}


.lawyer-hero-bg {
    height: 50px;

    background:var(--sidebar);

    border-bottom: 1px solid var(--line2);
}


.lawyer-hero-content {
    position: relative;

    display: flex;
    align-items: center;

    gap: 30px;

    padding: 0 35px 35px;
}


/* =========================================================
   Avatar
========================================================= */

.lawyer-avatar {
    position: relative;

    width: 170px;
    min-width: 170px;
    height: 170px;

    margin-top: -55px;
}


.lawyer-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 7px solid #fff;

    box-shadow:
            0 8px 25px rgba(20, 32, 46, 0.14);
}


.lawyer-verified {
    position: absolute;

    bottom: 8px;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: #fff;

    border: 3px solid #fff;

    border-radius: 50%;

    font-size: 15px;
}


/* =========================================================
   Lawyer Information
========================================================= */

.lawyer-info {
    flex: 1;

    padding-top: 25px;
}


.lawyer-label {
    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    margin-bottom: 8px;

    background: rgba(215, 167, 59, 0.11);

    color: #9a731d;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;
}


.lawyer-info h1 {
    margin: 0 0 18px;

    color: var(--ink);

    font-size: 28px;

    font-weight: 800;
}


.lawyer-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.lawyer-meta > div {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    background: var(--field);

    border: 1px solid var(--line2);

    border-radius: 10px;

    color: var(--muted);

    font-size: 13px;
}


.lawyer-meta i {
    color: var(--primary);

    font-size: 16px;
}


.lawyer-rating {
    background: rgba(215, 167, 59, 0.09) !important;
}


.lawyer-rating i {
    color: var(--primary);
}


/* =========================================================
   Sections
========================================================= */

.lawyer-section {
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: 20px;

    padding: 25px;

    margin-bottom: 20px;

    box-shadow:
            0 8px 28px rgba(20, 32, 46, 0.045);
}


/* =========================================================
   Section Title
========================================================= */

.section-title {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 22px;

    padding-bottom: 17px;

    border-bottom: 1px solid var(--line2);
}


.section-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(215, 167, 59, 0.12);

    color: var(--primary);

    border-radius: 12px;

    font-size: 19px;
}


.section-title h3 {
    margin: 0 0 3px;

    color: var(--ink);

    font-size: 17px;

    font-weight: 800;
}


.section-title span {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   Specialties
========================================================= */

.specialties-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.specialty {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 14px;

    background: var(--field);

    border: 1px solid var(--fieldBorder);

    border-radius: 10px;

    color: var(--body);

    font-size: 13px;

    transition: .2s ease;
}


.specialty i {
    color: var(--primary);

    font-size: 15px;
}


.specialty:hover {
    background: rgba(215, 167, 59, 0.1);

    border-color: rgba(215, 167, 59, 0.35);

    transform: translateY(-2px);
}


/* =========================================================
   Biography
========================================================= */

.lawyer-bio {
    color: var(--body);

    font-size: 14px;

    line-height: 2.2;

    background: var(--field);

    border: 1px solid var(--line2);

    border-radius: 13px;

    padding: 18px 20px;
}


/* =========================================================
   Contact
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.contact-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px;

    background: var(--field);

    border: 1px solid var(--line2);

    border-radius: 14px;

    transition: .2s ease;
}


.contact-item:hover {
    border-color: rgba(215, 167, 59, 0.3);

    background: rgba(215, 167, 59, 0.05);
}


.contact-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(215, 167, 59, 0.11);

    color: var(--primary);

    border-radius: 11px;

    font-size: 18px;
}


.contact-content {
    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


.contact-content span {
    color: var(--muted);
}


.contact-content strong {
    color: var(--ink);

    font-size: 13px;

    font-weight: 600;

    word-break: break-word;
}


.contact-content a {
    color: var(--ink);

    text-decoration: none;
}


.contact-content a:hover {
    color: var(--primary);
}


/* =========================================================
   Education
========================================================= */

.education-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.education-item {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 17px;

    background: var(--field);

    border: 1px solid var(--line2);

    border-radius: 14px;
}


.education-item span {
    color: var(--muted);

    font-size: 12px;
}


.education-item strong {
    color: var(--ink);

    font-size: 14px;
}


/* =========================================================
   Social
========================================================= */

.social-list {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.social-btn {
    min-width: 170px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    border: 1px solid var(--line);

    border-radius: 12px;

    color: var(--ink);

    text-decoration: none;

    transition: .2s ease;
}


.social-btn > span {
    flex: 1;
}


.social-btn > i:first-child {
    font-size: 19px;
}


.social-btn > i:last-child {
    color: var(--muted);

    font-size: 13px;
}


.social-btn:hover {
    transform: translateY(-2px);

    color: var(--ink);

    background: var(--field);
}


.social-btn.instagram:hover {
    border-color: rgba(193, 53, 132, .3);
}


.social-btn.facebook:hover {
    border-color: rgba(24, 119, 242, .3);
}


/* =========================================================
   Empty
========================================================= */

.empty-text {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 767px) {

    .lawyer-hero-bg {
        height: 90px;
    }


    .lawyer-hero-content {
        flex-direction: column;

        text-align: center;

        gap: 15px;

        padding:
                0 20px
                25px;
    }


    .lawyer-avatar {
        width: 135px;
        min-width: 135px;
        height: 135px;

        margin-top: -50px;
    }


    .lawyer-info {
        padding-top: 0;
    }


    .lawyer-info h1 {
        font-size: 22px;

        margin-bottom: 15px;
    }


    .lawyer-meta {
        justify-content: center;
    }


    .lawyer-meta > div {
        font-size: 12px;
    }


    .lawyer-section {
        padding: 18px;

        border-radius: 16px;
    }


    .contact-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }


    .section-title {
        margin-bottom: 17px;
    }


    .social-btn {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .lawyer-meta {
        flex-direction: column;
        align-items: stretch;
    }


    .lawyer-meta > div {
        justify-content: center;
    }


    .lawyer-avatar {
        width: 120px;
        min-width: 120px;
        height: 120px;
    }


    .lawyer-info h1 {
        font-size: 20px;
    }

}
     /* =========================
    Alert
 ========================= */

 .case-alert {
     background: var(--panel);
     color: var(--body);

     border: 1px solid var(--line);
     border-right: 4px solid var(--primary);

     border-radius: 14px;

     padding: 15px 18px;
     margin-bottom: 18px;

     font-size: 14px;
     line-height: 1.8;

     box-shadow:
             0 5px 18px rgba(12, 21, 36, 0.05);

     position: relative;
 }


/* =========================
   Main Card
========================= */

.case-card {
    background:
            linear-gradient(
                    145deg,
                    var(--panel),
                    var(--panelHi)
            );

    border: 1px solid var(--line);

    border-radius: 20px;

    padding: 25px;

    box-shadow:
            0 10px 30px rgba(12, 21, 36, 0.06);

    position: relative;
}


/* =========================
   Yii ActiveForm
========================= */

.case-card .form-group {
    margin-bottom: 0;
}

.case-card label {
    display: block;

    color: var(--ink);

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 8px;
}


/* =========================
   Select
========================= */

.case-select {
    width: 100%;

    height: 48px;

    border-radius: 12px;

    color: var(--select);

    font-size: 14px;

    padding: 0 14px;

    transition:
            border-color .2s ease,
            box-shadow .2s ease,
            background-color .2s ease;
}


.case-select:hover {
    background-color: rgba(12, 21, 36, 0.055);

    border-color: rgba(215, 167, 59, 0.45);
}


.case-select:focus {
    background-color: var(--panel);

    border-color: var(--primary);

    box-shadow:
            0 0 0 3px rgba(215, 167, 59, 0.15);

    outline: none;
}
.dark .case-select:focus option{
    background: rgba(0, 0, 0, 0.64) !important;
    color:var(--ink) !important;
}


/* Prompt */

.case-select option {
    color: var(--ink);
    background: #fff;
}


/* =========================
   Buttons
========================= */

.case-btn {
    height: 48px;

    border: 0;

    border-radius: 12px;

    background: var(--btn);

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    padding: 0 20px;

    box-shadow:
            0 7px 16px rgba(200, 155, 60, 0.22);

    transition:
            transform .2s ease,
            box-shadow .2s ease,
            filter .2s ease;
}


.case-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    filter: brightness(1.03);

    box-shadow:
            0 10px 22px rgba(200, 155, 60, 0.30);
}


.case-btn:active {
    transform: translateY(0);

    box-shadow:
            0 4px 10px rgba(200, 155, 60, 0.2);
}


/* =========================
   AI Button
========================= */

.case-btn-ai {
    background:
            linear-gradient(
                    100deg,
                    #14202e,
                    #26384b
            );

    box-shadow:
            0 7px 16px rgba(20, 32, 46, 0.18);
}


.case-btn-ai:hover {
    box-shadow:
            0 10px 22px rgba(20, 32, 46, 0.25);

    filter: brightness(1.08);
}


/* =========================
   Mobile
========================= */

@media (max-width: 767.98px) {

    .case-alert {
        padding: 13px 15px;

        font-size: 13px;

        border-radius: 12px;
    }

    .case-card {
        padding: 18px;

        border-radius: 16px;
    }

    .case-select {
        height: 46px;
    }

    .case-btn {
        height: 46px;

        font-size: 13px;
    }

}
