/**
 * SarvHost WHMCS Theme - v3.0 Final
 * طراحی کامل و حرفه‌ای
 */

/* Font Awesome Import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* ==================== فونت بی‌یکان ==================== */
@font-face {
    font-family: 'Byekan';
    src: url('../fonts/BYekan.woff2') format('woff2'),
        url('../fonts/BYekan.woff') format('woff'),
        url('../fonts/BYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==================== متغیرهای رنگ ==================== */
:root {
    --primary: #1A237E;
    --primary-mid: #283593;
    --primary-light: #3949AB;
    --secondary: #F59E0B;
    --accent: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    --info: #0EA5E9;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --grey-50: #F9FAFB;
    --grey-100: #F3F4F6;
    --grey-200: #E5E7EB;
    --grey-300: #D1D5DB;
    --grey-400: #9CA3AF;
    --white: #FFFFFF;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease;
}

/* ==================== ریست و پایه ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Byekan', Tahoma, Arial, sans-serif !important;
    font-size: 14px;
    direction: rtl !important;
    text-align: right !important;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

*,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
input,
button,
textarea,
select,
label {
    font-family: 'Byekan', Tahoma, Arial, sans-serif !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--primary-light);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 13px;
}

p {
    margin-bottom: 12px;
    line-height: 2;
}

/* ==================== RTL Layout ==================== */
.pull-right {
    float: left !important;
}

.pull-left {
    float: right !important;
}

.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

@media (min-width: 768px) {
    .pull-md-right {
        float: right !important;
    }

    .pull-md-left {
        float: left !important;
    }

    /* سایدبار سمت راست */
    #main-body .col-md-3.pull-md-left.sidebar {
        float: right !important;
    }

    /* محتوا سمت چپ */
    #main-body .col-md-9.pull-md-right,
    #main-body .col-md-9.pull-md-right.main-content {
        float: left !important;
    }
}

/* ==================== هدر بالا ==================== */
#header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    padding: 12px 0;
    border-bottom: none;
}

#header .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}

#header .logo {
    display: flex;
    align-items: center;
}

#header .logo img {
    max-height: 48px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

#header .logo:hover img {
    opacity: 0.9;
}

#header .logo-text {
    color: var(--white);
    font-size: 22px;
}

#header .top-nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .top-nav>li {
    position: relative;
}

#header .top-nav>li>a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

#header .top-nav>li>a:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
}

#header .top-nav .btn,
#header .top-nav .primary-action>a {
    background: var(--white) !important;
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: normal;
}

#header .top-nav .btn:hover,
#header .top-nav .primary-action>a:hover {
    background: var(--grey-100) !important;
}

#header .top-nav .label-info {
    background: var(--secondary);
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 7px;
    margin-right: 4px;
}

#header .top-nav .caret {
    border-top-color: rgba(255, 255, 255, 0.8);
    margin-right: 3px;
}

#header .btn-logged-in-admin {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    padding: 8px 12px;
}

/* ==================== منوی اصلی ==================== */
#main-menu {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    z-index: 1000;
}

#main-menu .navbar-main,
#main-menu .navbar-default {
    background: transparent !important;
    border: none !important;
    margin-bottom: 0;
    min-height: auto;
}

#main-menu .navbar-collapse {
    padding: 0;
    border: none;
}

#main-menu .navbar-nav {
    float: right !important;
    margin: 0;
}

#main-menu .navbar-nav.navbar-right {
    float: left !important;
}

#main-menu .navbar-nav>li {
    float: right !important;
}

#main-menu .navbar-nav>li>a {
    color: var(--white) !important;
    padding: 16px 18px;
    font-size: 14px;
    background: transparent !important;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

#main-menu .navbar-nav>li>a:hover,
#main-menu .navbar-nav>li>a:focus,
#main-menu .navbar-nav>li.active>a,
#main-menu .navbar-nav>li.open>a {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-bottom-color: var(--secondary);
}

#main-menu .caret {
    border-top-color: var(--white) !important;
    margin-right: 5px;
}

/* دراپ‌داون منو */
#main-menu .dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 0;
    text-align: right;
    min-width: 200px;
    right: 0;
    left: auto;
}

#main-menu .dropdown-menu>li>a {
    color: var(--text-dark) !important;
    padding: 11px 20px;
    font-size: 13px;
    transition: var(--transition);
    display: block;
}

#main-menu .dropdown-menu>li>a:hover {
    background: var(--grey-100) !important;
    color: var(--primary) !important;
    padding-right: 25px;
}

#main-menu .dropdown-menu>li>a i {
    margin-left: 8px;
    width: 18px;
    text-align: center;
}

#main-menu .dropdown-menu .nav-divider,
#main-menu .dropdown-menu .nav-divider a {
    display: none !important;
}

/* همبرگر موبایل */
#main-menu .navbar-header {
    float: right;
}

#main-menu .navbar-toggle {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

#main-menu .navbar-toggle:hover,
#main-menu .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.2);
}

#main-menu .navbar-toggle .icon-bar {
    background: var(--white);
    width: 22px;
    height: 2px;
}

/* ==================== بدنه اصلی ==================== */
#main-body {
    padding: 35px 0;
    min-height: calc(100vh - 400px);
    background: var(--bg-light);
}

/* ==================== هدر صفحه ==================== */
.header-lined {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--grey-200);
}

.header-lined h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb>li {
    float: right !important;
}

.breadcrumb>li+li:before {
    content: "/";
    padding: 0 8px;
    color: var(--grey-400);
}

.breadcrumb>li>a {
    color: var(--text-muted);
}

.breadcrumb>li>a:hover {
    color: var(--primary);
}

.breadcrumb>.active {
    color: var(--text-dark);
}

/* ==================== سایدبار ==================== */
/* ==================== سایدبار ==================== */
.sidebar {
    margin-bottom: 25px;
}

.sidebar .panel,
.sidebar .panel-sidebar {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--white);
}

.sidebar .panel-heading {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%) !important;
    color: var(--white) !important;
    padding: 12px 16px;
    border: none;
}

.sidebar .panel-title {
    font-size: 13px;
    color: var(--white) !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .panel-title i:first-child {
    margin-left: 6px;
}

.sidebar .panel-minimise {
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar .panel-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.9;
}

.sidebar .panel-footer {
    padding: 12px 16px;
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
}

.sidebar .list-group {
    margin: 0;
}

.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--grey-200);
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-dark);
    background: transparent;
    transition: var(--transition);
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item:hover {
    background: var(--grey-100);
    color: var(--primary);
}

.sidebar .list-group-item i {
    margin-left: 6px;
    width: 16px;
    text-align: center;
}

.sidebar .list-group-item .badge {
    float: left;
    background: var(--primary);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ==================== کارت‌های آماری (Tiles) - طراحی جدید ==================== */
.tiles {
    margin-bottom: 30px;
}

.tiles .row {
    margin: 0 -12px;
    display: flex;
    flex-wrap: wrap;
}

.tiles .tile {
    padding: 0 12px;
    margin-bottom: 24px;
    flex: 0 0 25%;
    max-width: 25%;
}

.tiles .tile>a {
    display: block;
    background: var(--white);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid transparent;
}

.tiles .tile>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.03) 0%, rgba(57, 73, 171, 0.03) 100%);
    opacity: 0;
    transition: var(--transition);
}

.tiles .tile>a:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26, 35, 126, 0.15);
    border-color: rgba(26, 35, 126, 0.1);
}

.tiles .tile>a:hover::before {
    opacity: 1;
}

.tiles .tile .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.08) 0%, rgba(57, 73, 171, 0.08) 100%);
    transition: var(--transition);
}

.tiles .tile>a:hover .icon {
    transform: scale(1.1);
}

.tiles .tile .icon i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

/* رنگ آیکون‌ها بر اساس نوع */
.tiles .tile:nth-child(1) .icon {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(57, 73, 171, 0.1) 100%);
}

.tiles .tile:nth-child(1) .icon i {
    color: #1A237E;
}

.tiles .tile:nth-child(2) .icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.tiles .tile:nth-child(2) .icon i {
    color: #059669;
}

.tiles .tile:nth-child(3) .icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.tiles .tile:nth-child(3) .icon i {
    color: #DC2626;
}

.tiles .tile:nth-child(4) .icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.tiles .tile:nth-child(4) .icon i {
    color: #D97706;
}

.tiles .tile .stat {
    font-size: 38px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.tiles .tile .title {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.tiles .tile .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: var(--transition);
}

.tiles .tile>a:hover .highlight {
    height: 7px;
}

/* رنگ‌های highlight */
.bg-color-blue {
    background: linear-gradient(90deg, #1A237E, #3949AB) !important;
}

.bg-color-green {
    background: linear-gradient(90deg, #059669, #10B981) !important;
}

.bg-color-red {
    background: linear-gradient(90deg, #DC2626, #EF4444) !important;
}

.bg-color-gold {
    background: linear-gradient(90deg, #D97706, #F59E0B) !important;
}

/* ریسپانسیو tiles */
@media (max-width: 991px) {
    .tiles .tile {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .tiles .tile {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
        margin-bottom: 16px;
    }

    .tiles .row {
        margin: 0 -8px;
    }

    .tiles .tile>a {
        padding: 22px 12px;
        border-radius: 12px;
    }

    .tiles .tile .icon {
        width: 55px;
        height: 55px;
        margin-bottom: 14px;
    }

    .tiles .tile .icon i {
        font-size: 22px;
    }

    .tiles .tile .stat {
        font-size: 28px;
    }

    .tiles .tile .title {
        font-size: 13px;
    }
}
/* ==================== جستجو ==================== */
.home-kb-search {
    position: relative;
    margin-bottom: 28px;
}

.home-kb-search .form-control {
    height: 54px;
    padding: 14px 50px 14px 18px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 2px solid var(--grey-200);
    text-align: right;
    background: var(--white);
    transition: var(--transition);
}

.home-kb-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
    outline: none;
}

.home-kb-search>i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-400);
    font-size: 18px;
}

/* ==================== پنل‌ها ==================== */
.panel {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    background: var(--white);
    overflow: hidden;
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%) !important;
    color: var(--white) !important;
    border: none;
    padding: 15px 20px;
}

.panel-title {
    font-size: 14px;
    color: var(--white) !important;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.panel-title>i:first-child {
    margin-left: 10px;
}

.panel-title .pull-right {
    margin-right: auto;
    margin-left: 0;
}

.panel-title a {
    color: var(--white) !important;
}

.panel-title .badge {
    background: rgba(255, 255, 255, 0.2);
    margin-right: 8px;
}

.panel-body {
    padding: 20px;
    font-size: 13px;
    line-height: 1.9;
}

.panel-footer {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
    padding: 14px 20px;
}

/* رنگ‌های پنل */
.panel-default>.panel-heading {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%) !important;
}

.panel-accent-blue>.panel-heading {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%) !important;
}

.panel-accent-green>.panel-heading {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
}

.panel-accent-red>.panel-heading {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
}

.panel-accent-gold>.panel-heading {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%) !important;
}

.panel-accent-asbestos>.panel-heading {
    background: linear-gradient(135deg, #546E7A 0%, #78909C 100%) !important;
}

.panel-accent-orange>.panel-heading {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%) !important;
}

.panel-accent-blue>.panel-heading *,
.panel-accent-green>.panel-heading *,
.panel-accent-red>.panel-heading *,
.panel-accent-gold>.panel-heading *,
.panel-accent-asbestos>.panel-heading *,
.panel-accent-orange>.panel-heading * {
    color: var(--white) !important;
}

/* ==================== لیست گروهی ==================== */
.list-group {
    margin: 0;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--grey-200);
    padding: 13px 20px;
    font-size: 13px;
    color: var(--text-dark);
    background: transparent;
    text-align: right;
    transition: var(--transition);
}

.list-group-item:first-child {
    border-radius: 0;
}

.list-group-item:last-child {
    border-bottom: none;
    border-radius: 0;
}

.list-group-item:hover {
    background: var(--grey-100);
    color: var(--primary);
}

.list-group-item .label {
    float: left;
    margin-right: 10px;
}

.list-group-item small,
.list-group-item .text-domain,
.list-group-item .text-last-updated {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==================== دکمه‌ها ==================== */
.btn {
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: var(--white);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    color: var(--white);
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: var(--white);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
    color: var(--white);
}

.btn-info:hover,
.btn-info:focus {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
    color: var(--white);
}

.btn-default {
    background: var(--white);
    border: 1px solid var(--grey-300);
    color: var(--text-dark);
}

.btn-default:hover,
.btn-default:focus {
    background: var(--grey-100);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-xs {
    padding: 5px 12px;
    font-size: 11px;
}

.btn-sm {
    padding: 7px 15px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ==================== فرم‌ها ==================== */
.form-control {
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    height: auto;
    font-size: 13px;
    text-align: right;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--grey-400);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
    color: var(--text-dark);
}

/* .input-group {
    display: flex;
} */

.input-group .form-control:first-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group .form-control:last-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group-btn .btn {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group-addon {
    background: var(--grey-100);
    border: 1px solid var(--grey-300);
    padding: 10px 14px;
    font-size: 13px;
}

/* ==================== جداول ==================== */
.table {
    font-size: 13px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0;
}

.table>thead>tr>th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: var(--white);
    border: none;
    padding: 14px 16px;
    text-align: right;
    font-weight: normal;
    font-size: 13px;
}

.table>tbody>tr>td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--grey-200);
    text-align: right;
}

.table>tbody>tr:hover {
    background: var(--grey-50);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background: var(--grey-50);
}

.table-responsive {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==================== Label ها ==================== */
.label {
    font-weight: normal;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
}

.label-success {
    background: var(--success);
    color: var(--white);
}

.label-warning {
    background: var(--warning);
    color: var(--white);
}

.label-danger {
    background: var(--danger);
    color: var(--white);
}

.label-info {
    background: var(--info);
    color: var(--white);
}

.label-primary {
    background: var(--primary);
    color: var(--white);
}

.label-default {
    background: var(--grey-400);
    color: var(--white);
}

/* ==================== Alert ها ==================== */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 13px;
    text-align: right;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-right: 4px solid var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border-right: 4px solid var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border-right: 4px solid var(--danger);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284C7;
    border-right: 4px solid var(--info);
}

/* ==================== Modal ==================== */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: var(--white);
    padding: 18px 24px;
    border: none;
}

.modal-header .close {
    color: var(--white);
    opacity: 0.8;
    float: left;
    text-shadow: none;
    font-size: 24px;
    margin-top: -2px;
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--white);
}

.modal-title {
    color: var(--white);
    font-size: 16px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
    padding: 16px 24px;
}

/* ==================== Popover & Dropdown ==================== */
.popover {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.popover-content {
    padding: 0;
}

#languageChooserContent ul,
#accountNotificationsContent ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

#languageChooserContent ul li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 13px;
    transition: var(--transition);
}

#languageChooserContent ul li a:hover {
    background: var(--grey-100);
    color: var(--primary);
}

#accountNotificationsContent .client-alerts {
    padding: 0;
}

#accountNotificationsContent .client-alerts li {
    border-bottom: 1px solid var(--grey-200);
}

#accountNotificationsContent .client-alerts li:last-child {
    border-bottom: none;
}

#accountNotificationsContent .client-alerts li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-dark);
    transition: var(--transition);
}

#accountNotificationsContent .client-alerts li a:hover {
    background: var(--grey-100);
}

#accountNotificationsContent .client-alerts li a i {
    font-size: 16px;
    margin-top: 2px;
}

#accountNotificationsContent .client-alerts li a .message {
    flex: 1;
    font-size: 12px;
    line-height: 1.7;
}

#accountNotificationsContent .client-alerts li.none {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ==================== Pagination ==================== */
.pagination {
    margin: 20px 0;
}

.pagination>li>a,
.pagination>li>span {
    color: var(--text-dark);
    border: 1px solid var(--grey-300);
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}

.pagination>li>a:hover {
    background: var(--grey-100);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination>.disabled>a,
.pagination>.disabled>span {
    color: var(--grey-400);
    background: var(--grey-100);
}

/* ==================== Home Banner ==================== */
#home-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

#home-banner h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 30px;
}

#home-banner .form-control {
    text-align: right;
    padding-right: 18px;
    border: none;
}

#home-banner .input-group-lg>.form-control {
    height: 54px;
    font-size: 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

#home-banner .input-group-btn .btn {
    padding: 14px 28px;
    font-size: 14px;
}

.home-shortcuts {
    background: var(--white);
    padding: 25px 0;
    box-shadow: var(--shadow);
}

.home-shortcuts ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.home-shortcuts ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--grey-100);
    border-radius: var(--radius);
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 13px;
}

.home-shortcuts ul li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.home-shortcuts ul li a i {
    font-size: 20px;
}

.home-shortcuts .lead {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ==================== فوتر قدیمی مخفی ==================== */
#footer {
    display: none !important;
}

/* ==================== فوتر جدید ==================== */
.sarvhost-footer {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 55px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    text-align: right;
}

.footer-about {
    padding-left: 20px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 48px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover img {
    opacity: 0.85;
}

.footer-logo-text {
    color: var(--white);
    font-size: 24px;
}

.footer-desc {
    font-size: 13px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 45px;
    height: 2px;
    background: var(--primary-light);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.footer-contact li a,
.footer-contact li span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 22px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.back-to-top {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ==================== Overlay & Loading ==================== */
#fullpage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullpage-overlay.hidden {
    display: none;
}

#fullpage-overlay .inner-wrapper {
    text-align: center;
}

#fullpage-overlay .msg {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== Clearfix ==================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 1199px) {
    .footer-grid {
        gap: 35px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-about {
        grid-column: span 2;
        text-align: center;
        padding-left: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 991px) {
    #header .container {
        flex-direction: column;
        gap: 12px;
    }

    #header .top-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #main-body .col-md-9,
    #main-body .col-md-3 {
        float: none !important;
        width: 100%;
    }

    .sidebar {
        margin-top: 30px;
    }

    #main-menu .navbar-nav,
    #main-menu .navbar-nav.navbar-right {
        float: none !important;
        margin: 0;
    }

    #main-menu .navbar-nav>li {
        float: none !important;
    }

    #main-menu .navbar-collapse {
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary-mid) 100%);
        border: none;
        margin: 0 -15px;
        padding: 0;
        max-height: none;
    }

    #main-menu .navbar-nav>li>a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #main-menu .navbar-nav>li>a:hover,
    #main-menu .navbar-nav>li.open>a {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    #main-menu .dropdown-menu {
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
        position: static;
        float: none;
        width: 100%;
        padding: 0;
    }

    #main-menu .dropdown-menu>li>a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 13px 35px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #main-menu .dropdown-menu>li>a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--white) !important;
        padding-right: 35px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-col {
        text-align: center;
    }

    .footer-title {
        display: inline-block;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .home-shortcuts ul {
        flex-direction: column;
        align-items: center;
    }

    .home-shortcuts ul li {
        width: 100%;
        max-width: 280px;
    }

    .home-shortcuts ul li a {
        justify-content: center;
    }

    #home-banner {
        padding: 45px 0;
    }

    #home-banner h2 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 13px;
    }

    #main-body {
        padding: 25px 0;
    }

    .tiles .tile>a {
        padding: 22px 15px;
    }

    .tiles .tile .icon i {
        font-size: 30px;
    }

    .tiles .tile .stat {
        font-size: 26px;
    }

    .tiles .tile .title {
        font-size: 12px;
    }

    .header-lined h1 {
        font-size: 20px;
    }

    .panel-heading {
        padding: 13px 16px;
    }

    .panel-body {
        padding: 16px;
    }

    .panel-title {
        font-size: 13px;
    }

    .list-group-item {
        padding: 12px 16px;
    }

    .btn {
        padding: 9px 16px;
    }

    .sarvhost-footer {
        padding: 45px 0 0;
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .tiles .row {
        margin: 0 -5px;
    }

    .tiles .tile {
        padding: 0 5px;
    }

    .tiles .tile>a {
        padding: 18px 10px;
    }

    .tiles .tile .stat {
        font-size: 22px;
    }

    #header .top-nav>li>a {
        padding: 6px 10px;
        font-size: 12px;
    }

    #header .top-nav .btn,
    #header .top-nav .primary-action>a {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ==================== فیکس آیکون‌ها ==================== */
.fas,
.far,
.fab,
.fa,
i.fas,
i.far,
i.fab,
i.fa,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-style: normal !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

.far,
i.far,
.fa-regular {
    font-weight: 400 !important;
}

.fab,
i.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

/* آیکون‌های tiles */
.tiles .tile .icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* آیکون‌های سایدبار */
.sidebar .panel-title i,
.sidebar .list-group-item i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* آیکون‌های منو */
#main-menu .navbar-nav i,
#header .top-nav i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block !important;
}
/* ==================== فیکس پنل‌های صفحه اصلی ==================== */
.client-home-panels {
    margin-top: 30px;
}

.client-home-panels>.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.client-home-panels>.row>.col-sm-6 {
    padding: 0 12px;
    float: none !important;
    width: 50%;
    flex: 0 0 50%;
}

.client-home-panels .panel {
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}

.client-home-panels .panel-heading {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%) !important;
    padding: 14px 18px;
    border: none;
}

.client-home-panels .panel-title {
    font-size: 14px;
    color: #fff !important;
    margin: 0;
    display: flex;
    align-items: center;
}

.client-home-panels .panel-title i {
    margin-left: 8px;
    font-size: 16px;
}

.client-home-panels .panel-title .pull-right {
    margin-right: auto;
    margin-left: 0;
}

.client-home-panels .panel-body {
    padding: 16px 18px;
    font-size: 13px;
    color: #6B7280;
}

.client-home-panels .list-group {
    margin: 0;
}

.client-home-panels .list-group-item {
    border: none;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 18px;
    font-size: 14px;
    color: #1F2937;
    background: transparent;
    transition: all 0.2s ease;
    display: block;
}

.client-home-panels .list-group-item:last-child {
    border-bottom: none;
}

.client-home-panels .list-group-item:hover {
    background: #F3F4F6;
    color: #1A237E;
    padding-right: 22px;
}

.client-home-panels .list-group-item i {
    margin-left: 8px;
    width: 18px;
    text-align: center;
    color: #1A237E;
}

.client-home-panels .list-group-item .badge {
    float: left;
    background: #1A237E;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
}

.client-home-panels .panel-footer {
    padding: 12px 18px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    min-height: 10px;
}

.client-home-panels .panel-footer:empty {
    display: none;
}

/* رنگ‌های مختلف پنل‌ها */
.client-home-panels .panel-accent-blue .panel-heading {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%) !important;
}

.client-home-panels .panel-accent-green .panel-heading {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
}

.client-home-panels .panel-accent-red .panel-heading {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
}

.client-home-panels .panel-accent-gold .panel-heading {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%) !important;
}

.client-home-panels .panel-accent-orange .panel-heading {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%) !important;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .client-home-panels>.row>.col-sm-6 {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* ==================== فیکس کارت‌های آماری (Tiles) ==================== */
.tiles {
    margin-bottom: 30px;
}

.tiles .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
}

.tiles .row>.tile,
.tiles .row>[class*="col-"] {
    float: none !important;
    padding: 0 10px !important;
    margin-bottom: 20px !important;
}

.tiles .tile>a {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
}

.tiles .tile>a:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.15);
}

.tiles .tile .icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(57, 73, 171, 0.1) 100%);
}

.tiles .tile .icon i {
    font-size: 26px !important;
    color: #1A237E;
}

.tiles .tile .stat {
    font-size: 34px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 6px;
    line-height: 1.1;
}

.tiles .tile .title {
    font-size: 14px;
    color: #6B7280;
}

.tiles .tile .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* رنگ آیکون‌ها بر اساس highlight */
.tiles .tile .highlight.bg-color-blue~.icon i,
.tiles .tile:has(.bg-color-blue) .icon i {
    color: #1A237E;
}

.tiles .tile .highlight.bg-color-green~.icon i,
.tiles .tile:has(.bg-color-green) .icon i {
    color: #059669;
}

.tiles .tile .highlight.bg-color-red~.icon i,
.tiles .tile:has(.bg-color-red) .icon i {
    color: #DC2626;
}

.tiles .tile .highlight.bg-color-gold~.icon i,
.tiles .tile:has(.bg-color-gold) .icon i {
    color: #D97706;
}

/* رنگ پس‌زمینه آیکون‌ها */
.tiles .row>.tile:nth-child(1) .icon {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(57, 73, 171, 0.1) 100%);
}

.tiles .row>.tile:nth-child(2) .icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.tiles .row>.tile:nth-child(3) .icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.tiles .row>.tile:nth-child(4) .icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.tiles .row>.tile:nth-child(1) .icon i {
    color: #1A237E;
}

.tiles .row>.tile:nth-child(2) .icon i {
    color: #059669;
}

.tiles .row>.tile:nth-child(3) .icon i {
    color: #DC2626;
}

.tiles .row>.tile:nth-child(4) .icon i {
    color: #D97706;
}
/* ==================== کارت‌های آماری جدید ==================== */
.stats-cards {
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(26, 35, 126, 0.15);
}

.stats-card a {
    text-decoration: none;
    display: block;
}

.stats-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.stats-icon i {
    font-size: 28px;
}

.stats-icon.blue {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.12) 0%, rgba(57, 73, 171, 0.12) 100%);
}

.stats-icon.blue i {
    color: #1A237E;
}

.stats-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
}

.stats-icon.green i {
    color: #059669;
}

.stats-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%);
}

.stats-icon.red i {
    color: #DC2626;
}

.stats-icon.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.12) 100%);
}

.stats-icon.gold i {
    color: #D97706;
}

.stats-number {
    font-size: 38px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1;
}

.stats-title {
    font-size: 15px;
    color: #6B7280;
}

/* ==================== جستجو ==================== */
.search-box {
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
}

.search-wrapper .form-control {
    height: 56px;
    padding: 15px 50px 15px 20px;
    font-size: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.search-wrapper .form-control:focus {
    border-color: #1A237E;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

/* ==================== پنل‌های اصلی ==================== */
.home-panels {
    margin-top: 10px;
}

.panels-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.panel-col {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 12px);
}

.home-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    color: #fff;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    font-size: 18px;
    opacity: 0.9;
}

.panel-header h3 .badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}

.panel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.panel-content {
    padding: 18px 20px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.8;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.panel-list li {
    border-bottom: 1px solid #F3F4F6;
}

.panel-list li:last-child {
    border-bottom: none;
}

.panel-list li a,
.panel-list li .list-item-text {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #1F2937;
    font-size: 14px;
    transition: all 0.2s ease;
}

.panel-list li a:hover {
    background: #F9FAFB;
    color: #1A237E;
    padding-right: 25px;
}

.panel-list li i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    color: #1A237E;
    font-size: 15px;
}

.panel-list li .badge {
    margin-right: auto;
    margin-left: 0;
    background: #1A237E;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
}

.home-panel .panel-footer {
    padding: 14px 20px;
    background: #F9FAFB;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

/* رنگ‌های مختلف پنل‌ها */
.home-panel.panel-blue .panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
}

.home-panel.panel-green .panel-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.home-panel.panel-red .panel-header {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.home-panel.panel-gold .panel-header {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.home-panel.panel-orange .panel-header {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
}

.home-panel.panel-asbestos .panel-header {
    background: linear-gradient(135deg, #546E7A 0%, #78909C 100%);
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .stats-row {
        gap: 15px;
    }

    .stats-card {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    .panel-col {
        max-width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 575px) {
    .stats-row {
        gap: 12px;
    }

    .stats-card {
        min-width: calc(50% - 6px);
        flex: 0 0 calc(50% - 6px);
        padding: 20px 15px;
    }

    .stats-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 14px;
    }

    .stats-icon i {
        font-size: 22px;
    }

    .stats-number {
        font-size: 28px;
    }

    .stats-title {
        font-size: 13px;
    }

    .panels-row {
        gap: 16px;
    }

    .panel-header {
        padding: 14px 16px;
    }

    .panel-header h3 {
        font-size: 14px;
    }

    .panel-list li a,
    .panel-list li .list-item-text {
        padding: 12px 16px;
        font-size: 13px;
    }
}
/* ==================== کارت‌های خوش‌آمدگویی ==================== */
.welcome-cards {
    margin-bottom: 30px;
}

.welcome-cards .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.welcome-cards [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

.welcome-card {
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.welcome-card-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
}

.welcome-card-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
}

.welcome-card-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #fff;
}

.welcome-card-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card-icon i {
    font-size: 28px;
    color: #fff;
}

.welcome-card-content {
    flex: 1;
}

.welcome-card-content h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #fff;
}

.welcome-card-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-card-content .balance-amount {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.welcome-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    margin-top: auto;
    transition: all 0.3s ease;
    text-decoration: none;
    width: fit-content;
}

.welcome-card-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

/* ==================== بخش جستجو ==================== */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
}

.search-box .form-control {
    border: none;
    padding: 18px 20px 18px 55px;
    font-size: 15px;
    height: auto;
}

.search-box .form-control:focus {
    box-shadow: none;
    border: none;
}

/* ==================== کارت‌های سرویس ==================== */
.service-cards {
    margin-bottom: 30px;
}

.service-cards .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.service-cards [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #F3F4F6;
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-icon i {
    font-size: 22px;
    color: #fff;
}

.service-card-icon.icon-green {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.service-card-icon.icon-orange {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.service-card-icon.icon-red {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.service-card-icon.icon-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
}

.service-card-icon.icon-dark {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
}

.service-card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1F2937;
    flex: 1;
}

.service-badge {
    background: #1A237E;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.service-badge.badge-green {
    background: #059669;
}

.service-badge.badge-orange {
    background: #D97706;
}

.service-badge.badge-red {
    background: #DC2626;
}

.service-badge.badge-purple {
    background: #7C3AED;
}

.service-badge.badge-dark {
    background: #374151;
}

.service-card-body {
    padding: 20px;
    flex: 1;
}

.service-card-body p {
    margin: 0;
    color: #6B7280;
    font-size: 14px;
}

.service-card-footer {
    padding: 15px 20px;
    background: #F9FAFB;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-service {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-service:hover {
    background: #1A237E;
    color: #fff;
    border-color: #1A237E;
}

.btn-order {
    padding: 10px 18px;
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-order:hover {
    background: linear-gradient(135deg, #283593 0%, #5C6BC0 100%);
    color: #fff;
}

/* ==================== پنل‌های پایین ==================== */
.bottom-panels {
    margin-top: 10px;
}

.bottom-panels .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.bottom-panels [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

.bottom-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.bottom-panel-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-panel-header i {
    font-size: 18px;
}

.bottom-panel-header .badge {
    background: rgba(255, 255, 255, 0.2);
    margin-right: auto;
    margin-left: 0;
}

.bottom-panel-body {
    padding: 16px 20px;
    color: #6B7280;
    font-size: 14px;
}

.bottom-panel-list {
    border-top: 1px solid #F3F4F6;
}

.bottom-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bottom-panel-item:last-child {
    border-bottom: none;
}

a.bottom-panel-item:hover {
    background: #F9FAFB;
    color: #1A237E;
    padding-right: 25px;
}

.bottom-panel-item i {
    width: 20px;
    text-align: center;
    color: #1A237E;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .welcome-cards [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .welcome-cards .col-md-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {

    .welcome-cards [class*="col-"],
    .service-cards [class*="col-"],
    .bottom-panels [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .welcome-card {
        min-height: auto;
    }

    .welcome-card-icon {
        width: 50px;
        height: 50px;
    }

    .welcome-card-icon i {
        font-size: 22px;
    }

    .welcome-card-content h3 {
        font-size: 18px;
    }

    .service-card-footer {
        flex-direction: column;
    }

    .btn-service,
    .btn-order {
        width: 100%;
        text-align: center;
    }
}
/* ==================== کارت‌های بالا - طرح InterServer ==================== */
.top-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.top-card {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.top-card.welcome {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.top-card.balance {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
}

.top-card.invoices {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.top-card .card-content {
    z-index: 2;
}

.top-card .card-content h2 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: bold;
}

.top-card .card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0 0 6px 0;
}

.top-card .card-content .amount {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
}

.top-card .card-link {
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.top-card .card-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.top-card .card-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
}

.top-card .card-icon i {
    font-size: 80px;
    color: #fff;
}

/* ==================== جستجو ==================== */
.search-box {
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
}

.search-wrapper .form-control {
    height: 54px;
    padding: 15px 50px 15px 20px;
    font-size: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.search-wrapper .form-control:focus {
    border-color: #1A237E;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

/* ==================== پنل‌های ۲ ستونه ==================== */
.home-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.panel-item {
    min-width: 0;
}

.home-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header h3 {
    color: #fff;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    font-size: 18px;
    opacity: 0.9;
}

.panel-header h3 .badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}

.panel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.panel-content {
    padding: 18px 20px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.8;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.panel-list li {
    border-bottom: 1px solid #F3F4F6;
}

.panel-list li:last-child {
    border-bottom: none;
}

.panel-list li a,
.panel-list li .list-item-text {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #1F2937;
    font-size: 14px;
    transition: all 0.2s ease;
}

.panel-list li a:hover {
    background: #F9FAFB;
    color: #1A237E;
    padding-right: 25px;
}

.panel-list li i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    color: #1A237E;
    font-size: 15px;
}

.panel-list li span {
    flex: 1;
}

.panel-list li .badge {
    background: #1A237E;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    margin-right: auto;
}

.home-panel .panel-footer {
    padding: 14px 20px;
    background: #F9FAFB;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.home-panel .panel-footer:empty {
    display: none;
}

/* رنگ‌های مختلف پنل‌ها */
.home-panel.panel-blue .panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
}

.home-panel.panel-green .panel-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.home-panel.panel-red .panel-header {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.home-panel.panel-gold .panel-header {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.home-panel.panel-orange .panel-header {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
}

.home-panel.panel-asbestos .panel-header {
    background: linear-gradient(135deg, #546E7A 0%, #78909C 100%);
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .top-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .top-card {
        min-height: 120px;
    }

    .home-panels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .top-card {
        padding: 18px;
        min-height: 110px;
    }

    .top-card .card-content h2 {
        font-size: 16px;
    }

    .top-card .card-icon i {
        font-size: 60px;
    }

    .panel-header {
        padding: 14px 16px;
    }

    .panel-header h3 {
        font-size: 14px;
    }

    .panel-list li a,
    .panel-list li .list-item-text {
        padding: 12px 16px;
        font-size: 13px;
    }
}
/* ==================== مخفی کردن سایدبار ثانویه ==================== */
.sidebar-secondary {
    display: none !important;
}

/* ==================== تنظیم عرض main-content ==================== */
.main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* وقتی سایدبار اصلی هست */
.col-md-9.main-content {
    width: 75% !important;
    max-width: 75% !important;
    flex: 0 0 75% !important;
}

@media (max-width: 991px) {
    .col-md-9.main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* ==================== کارت‌های بالا ==================== */
.top-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.top-card {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.top-card.welcome {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.top-card.balance {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
}

.top-card.invoices {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.top-card .card-content {
    z-index: 2;
}

.top-card .card-content h2 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: bold;
}

.top-card .card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0 0 6px 0;
}

.top-card .card-content .amount {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
}

.top-card .card-link {
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.top-card .card-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.top-card .card-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
}

.top-card .card-icon i {
    font-size: 80px;
    color: #fff;
}

/* ==================== جستجو ==================== */
.search-box {
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
}

.search-wrapper .form-control {
    height: 54px;
    padding: 15px 50px 15px 20px;
    font-size: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.search-wrapper .form-control:focus {
    border-color: #1A237E;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

/* ==================== پنل‌های ۲ ستونه ==================== */
.home-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.panel-item {
    min-width: 0;
}

.home-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header h3 {
    color: #fff;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    font-size: 18px;
    opacity: 0.9;
}

.panel-header h3 .badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}

.panel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.panel-content {
    padding: 18px 20px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.8;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.panel-list li {
    border-bottom: 1px solid #F3F4F6;
}

.panel-list li:last-child {
    border-bottom: none;
}

.panel-list li a,
.panel-list li .list-item-text {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #1F2937;
    font-size: 14px;
    transition: all 0.2s ease;
}

.panel-list li a:hover {
    background: #F9FAFB;
    color: #1A237E;
    padding-right: 25px;
}

.panel-list li i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    color: #1A237E;
    font-size: 15px;
}

.panel-list li span {
    flex: 1;
}

.panel-list li .badge {
    background: #1A237E;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    margin-right: auto;
}

.panel-list li .label {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.home-panel .panel-footer {
    padding: 14px 20px;
    background: #F9FAFB;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.home-panel .panel-footer:empty {
    display: none;
}

/* رنگ‌های مختلف پنل‌ها */
.home-panel.panel-blue .panel-header {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
}

.home-panel.panel-green .panel-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.home-panel.panel-red .panel-header {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.home-panel.panel-gold .panel-header {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.home-panel.panel-orange .panel-header {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
}

.home-panel.panel-asbestos .panel-header {
    background: linear-gradient(135deg, #546E7A 0%, #78909C 100%);
}

.home-panel.panel-emerald .panel-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .top-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .top-card {
        min-height: 120px;
    }

    .home-panels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .top-card {
        padding: 18px;
        min-height: 110px;
    }

    .top-card .card-content h2 {
        font-size: 16px;
    }

    .top-card .card-icon i {
        font-size: 60px;
    }

    .panel-header {
        padding: 14px 16px;
    }

    .panel-header h3 {
        font-size: 14px;
    }

    .panel-list li a,
    .panel-list li .list-item-text {
        padding: 12px 16px;
        font-size: 13px;
    }
}