main>.container {
    padding: 125px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}


/* ------------------------------------------استایل های من ------------------------------------ */


/* ----------------------------navbar----------------------------------- */
/* رنگ‌بندی Navbar */
.custom-navbar {
    background: linear-gradient(110deg, #c4cad6, #142343);
    font-family: Vazir-bold !important;
    border-bottom: 3px solid #ffeb3b;
}

.custom-navbar2 {
    background: linear-gradient(110deg, #f1f1f1, #c4cad6);
    font-family: Vazir-bold !important;
    border-bottom: 1px dashed #000000;
}

/* لینک‌های Navbar */
.custom-navbar .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 16px;
    transition: 0.3s;
}

/* افکت Hover برای لینک‌ها */
.custom-navbar .navbar-nav .nav-link:hover {
    color: #f3f590 !important;
    transform: scale(1.1);
}

/* لینک‌های Navbar */
.custom-navbar2 .navbar-nav .nav-link {
    color: #3b2b7e !important;
    font-size: 16px;
    transition: 0.3s;
}

/* افکت Hover برای لینک‌ها */
.custom-navbar2 .navbar-nav .nav-link:hover {
    color: #3a77bd !important;
    transform: scale(1.1);
}

/* استایل نام نرم‌افزار */
.brand-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* استایل نسخه و تاریخ انتشار */
.brand-version {
    font-size: 11px;
    color: #ffeb3b;
}

/* آیکون خانه */
.home-icon {
    font-size: 26px;
    padding-right: 10px;
    color: white;
}

/* لینک‌های Navbar */
.custom-navbar .navbar-nav .nav-link {
    color: rgb(255, 255, 255) !important;
    font-size: 16px;
    transition: 0.3s;
}

/* افکت Hover برای لینک‌ها */
.custom-navbar .navbar-nav .nav-link:hover {
    color: #d0ee11 !important;
    transform: scale(1.1);
}

/* زمان سرور */
.server-time span {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 0 15px;
}

/* منوهای کشویی */
.dropdown-item {
    font-size: 14px;
}

/* تنظیم زیرمنوهای کشویی به سمت راست */
.dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right;
    direction: rtl;
}

/* افزودن خط جداکننده بین آیتم‌های منو */
.dropdown-divider {
    border-top: 1px solid #ddd;
    margin: 5px 0;
}

.iconnavbar {
    font-size: 22px;
}

/* استایل جدید برای فوتر */
#footer {
    background: linear-gradient(110deg, #142343, #7081a8);
    color: white;
    padding: 15px 0;
    font-size: 14px;
    font-family: Vazir;
    border-top: 3px solid #ffeb3b;
}

#footer .text-muted {
    color: #dcdcdc !important;
}

#footer div {
    font-weight: bold;
}

#footer a {
    color: #ffeb3b;
    text-decoration: none;
    transition: 0.3s;
}

#footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* استایل مخصوص نام نرم‌افزار */
.footer-software {
    font-weight: bold;
    color: #80ffdb;
    font-size: 16px;
}

/* استایل نام شرکت */
.footer-company {
    font-weight: bold;
    color: #80ffdb;
    font-size: 15px;
}

/* استایل بخش طراحی و پشتیبانی */
.footer-support {
    font-weight: bold;
    color: #80ffdb;
    font-size: 15px;
}

/* استایل سال */
.footer-year {
    font-weight: bold;
    color: #e4a4a4;
    font-size: 14px;
}

/* ---------------------------------منو سمت راست---------------------------------- */
@media (max-width: 768px) {
    main#main {
        padding-top: 60px;
        /* بسته به ارتفاع NavBar تغییر کنه */
    }
}

.container {
    max-width: 100%;
}

/* استایل کلی آکاردئون */
#accordion .card {
    border: none;
    background: none;
}

/* تیتر آکاردئون */
#accordion .card-header {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, #1c2e4a, #2a446b);
    color: white;
    font-weight: 600;
    font-size: 34px;
    text-align: center;
    padding: 8px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: 0.3s;
}

#accordion .card-headertext {
    font-size: 12px !important;
}

/* حذف لینک پیش‌فرض */
#accordion .card-header:hover {
    background: linear-gradient(110deg, #2a446b, #3b5c8c);
    transform: scale(1.02);
}

/* استایل آیکون تیتر */
#accordion .card-header .fas {
    font-size: 34px;
    margin-bottom: 3px;
}

/* آیتم‌های داخلی */
#accordion .card-body {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}

.linkinmainmenu {
    text-decoration: none;
    font-size: 12px !important;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    font-weight: 500;
    color: #1c2e4a;
    transition: 0.3s;
    cursor: pointer;
}

.menu-icon {
    font-size: 30px !important;
}

.menu-text {
    font-size: 12px !important;
}

/* آیکون داخل آیتم */
.menu-item span {
    font-size: 18px;
    margin-bottom: 3px;
    color: #2a446b;
}

/* افکت هاور آیتم‌ها */
.menu-item:hover {
    background: #e9ecef;
    border-radius: 5px;
    color: #1c2e4a;
}

.menu-item:hover span {
    color: #1c2e4a;
}

.rightmenu {
    border-left: #3b5c8c dashed 1px;
}



.rz2i-99 {
    top: -5px;
    border: 0;
    height: 1px;
    padding: 0;
    position: relative;
    margin-right: 12px;
    margin-left: 12px;
    border-radius: 1px;
    background-color: #555555;
}




.caption_content {
    position: absolute;
    right: 0;
    height: 36px;
    background: rgba(0, 0, 0, .7);
    -webkit-transition: width 1s;
    transition: width 1s;
    overflow: hidden;
    position: fixed;
    color: #fff;
    border-radius: 50px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    z-index: 999999;
    width: 41px;
    margin-top: 80px;
}

.caption_content:hover {
    width: 150px;
    cursor: pointer;
}

/* ---------------------------مودال------------------------------ */
.modal-header {
    background-color: #ebf4ff;
    border-bottom: 2px solid #375aa0;
}

.custom-close {
    background-color: #fcdfd9;
    position: absolute;
    left: 15px;
    border-radius: 50%;
    opacity: 1 !important;
    color: #e6eaf9 !important;
    border: red 1px solid;
}

.modalbtn {
    text-align: left;
}

/* ----------------------------------- دکمه های ساخته شده------------------------- */
.iconabtnsrch {
    font-family: Vazir-Bold;
    font-size: 11px;
    background-color: #f4f6c3 !important;
    border: 1px solid #8f9431 !important;
}

.iconabtnsrch:hover {
    font-size: 12px;
    border: 1px solid #4b4e18 !important;
    background-color: #f8fd99 !important;
}

.iconabtnrpt {
    font-family: Vazir-Bold;
    font-size: 11px;

    background-color: #ffffff !important;
    border: 1px solid #4e5b5e !important;
}

.iconabtnrpt:hover {
    font-size: 12px;
    border: 1px solid #4f5e69 !important;
    background-color: #ecf3f4 !important;
}

.iconabtnclose {
    font-family: Vazir-Bold;
    font-size: 11px;
    background-color: #f5e3df !important;
    border: 1px solid #732212 !important;
    width: 150px;
}

.iconabtnclose:hover {
    font-size: 12px;
    border: 1px solid #732212 !important;
    background-color: #ffac9b !important;
}

.iconabtnadd {
    font-family: Vazir-Bold;
    font-size: 11px;
    background-color: #eeeffb !important;
    border: 1px solid #04228a !important;
    width: 150px;
}

.iconabtnadd:hover {
    font-size: 12px;
    border: 1px solid #04228a !important;
    background-color: #4bcdfe !important;
}

.iconabtnpay {
    font-family: Vazir-Bold;
    font-size: 11px;
    background-color: #ffffff !important;
    border: 1px solid #688a04 !important;
}

.iconabtnpay:hover {
    font-size: 12px;
    border: 1px solid #688a04 !important;
    background-color: #b8ffe2 !important;
}

.iconabtnsave {
    font-family: Vazir-Bold;
    font-size: 11px;
    background-color: #d7fbd6 !important;
    border: 1px solid #535716 !important;
    width: 150px;
}

.iconabtnsave:hover {
    font-size: 12px;
    border: 1px solid #10280c !important;
    background-color: #b3f4b0 !important;
}

.iconabtnmainact {
    font-family: Vazir-Bold;
    font-size: 14px;
    background-color: #fff2af !important;
    border: 1px solid #fff2af !important;
    color: #2c2d2e;
    width: 70px;
}

.iconabtnmainact:hover {
    background-color: #ffffff !important;
}

.iconabtnpatact {
    font-family: Vazir-Bold;
    font-size: 14px;
    background-color: #4cdce9 !important;
    border: 1px solid #4cdce9 !important;
    color: #2c2d2e;
    width: 200px;
}

.iconabtnpatact:hover {
    background-color: #ffffff !important;
}

.btnimg {
    width: 35px;
    height: 35px;
    margin-left: 3px;
}

.dvaddbutton {
    text-align: center;
}

/* ----------------------------------خط ----------------------------- */
.hrlinebox {
    -webkit-box-shadow: 0px 0px 6px 4px rgba(152, 145, 230, 1);
    -moz-box-shadow: 0px 0px 6px 4px rgba(152, 145, 230, 1);
    box-shadow: 0px 0px 6px 4px rgba(152, 145, 230, 1);
}

/* ------------------------------  فیلدها ------------------ */
.help-block {
    color: red;
}

.control-label {
    font-family: Vazir-Bold;
}

/*---------------------  گرید----------------------------------- */
.pjxDeleteicon {
    font-size: 14 !important;
    color: red;
}

.pjxUpdateicon {
    font-size: 14 !important;
    color: #8488f7;
}

.pjxExtrabtn1 {
    font-size: 18 !important;
    color: #3f117e;
}

.pjxViewicon {
    font-size: 14 !important;
    color: #5a482d;
}

.pjxbtn {
    width: 25px;
    height: 25px;
    margin-left: 5px;
}

.pjxSubPage {
    font-size: 14 !important;
    color: #ad0f8d;
}

.fixed-width-btns {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    justify-content: center;
    align-items: center;
}

.fixed-width-btns-header {
    background-color: #0d2f52 !important;
    color: yellow !important;
    cursor: pointer;
    font-size: 15px;
    justify-content: center;
    align-items: center;
}

.kv-grid-table thead th a {
    text-decoration: none !important;
    border-bottom: none !important;
    color: white;
}

.kv-grid-table thead th {
    background-color: #2688EA;
    text-align: center;
}

.kv-grid-table thead th:hover {
    background-color: rgb(13, 47, 82);
    color: yellow !important;
}

.kv-grid-table thead th a:hover {
    color: yellow;
}

tr.custom-odd-row td {
    background-color: rgb(208, 240, 251) !important;
}

tr.custom-white-row td {
    background-color: rgb(255, 250, 236) !important;
}

tr.danger-row td {
    background-color: #f9dede !important;
    font-weight: bold !important;
    color: #eb5050 !important;
}

/* ---------------------   سوییچ دکمه چک باکس */
/* ظاهر سفارشی سوییچ‌های kartik\SwitchInput */
.custom-switch input[type="checkbox"]+.bootstrap-switch .bootstrap-switch-handle-on,
.custom-switch input[type="checkbox"]+.bootstrap-switch .bootstrap-switch-handle-off {
    font-family: 'Vazir', sans-serif;
    font-size: 13px;
    padding: 5px 12px;
    text-transform: none;
}

.custom-switch .bootstrap-switch {
    border-radius: 20px;
    height: 28px;
    border: 1px solid #ccc;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

.custom-switch .bootstrap-switch-handle-on,
.custom-switch .bootstrap-switch-handle-off {
    background-color: #2ecc71 !important;
    color: #fff;
    border-radius: 20px;
}

.custom-switch .bootstrap-switch-handle-off {
    background-color: #e74c3c !important;
}

.custom-switch .bootstrap-switch-label {
    background: transparent;
}

/* ------------- ---- اعضای صفحه --------------------*/
.page-title {
    padding: 5px;
    color: #2e3a59;
    /* رنگ تیره برای متن */
    border-radius: 10px;
    /* گوشه‌های گرد */
    font-size: 15px;
}

.page-title:hover {
    font-size: 15px;
    color: #5e2d51;
    /* رنگ تیره برای متن */
}



/* ------------------------------ دسترسی سریع ------------------ */

.quick-action-btn {
    width: 100px;
    height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    color: #0d6efd;
    /* رنگ آبی Bootstrap */
    text-decoration: none;
    border: 2px solid #0d6efd;
    background-color: transparent;
    cursor: pointer;
}

.quick-action-btn i {
    font-size: 32px;
    margin-bottom: 6px;
    color: #0d6efd;
    transition: color 0.3s ease;
}

.quick-action-btn:hover {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.5);
    border-color: #0d6efd;
    text-decoration: none;
}

.quick-action-btn:hover i {
    color: white;
}



/* اختصاصی صفحه پذیرش           */
.card-flip {
    position: relative;
    width: 100%;
    height: 300px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-flip.flip {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    border-radius: 0.25rem;
}

.card-back {
    transform: rotateY(180deg);
}

.patient-info-bar .info-value {
    color: rgb(211, 7, 238);
    margin-right: 4px;
    font-size: 16px;
}

.patient-info-bar div {
    margin-bottom: 4px;
    min-width: 180px;
}

@media (max-width: 576px) {
    .patient-info-bar div {
        width: 100%;
    }
}

.doctor-selected {
    background-color: #e7fff0 !important;
    /* مثلا رنگ آبی روشن */
    border-color: #a4a370 !important;
    /* رنگ آبی برای کادر */
    color: #004085;
    /* رنگ متن تیره */
    font-weight: bold;
    /* اگر خواستی آیکن هم تغییر کنه، می‌تونی اینجا تعریف کنی */
}

.service-fav-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.album-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.album-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 0 10px #000;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

#albumOverlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.album-backdrop {
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 3rem;
    height: 100%;
    overflow-y: auto;
}

.album-box {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 95%;
    max-width: 1000px;
}

.img-thumbnail {
    border-radius: 0.5rem;
}

.custom-autocomplete {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Vazir-Bold', 'Tahoma';
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1051;
}

.custom-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-suggestion:hover {
    background-color: #17a2b8;
    color: #fff;
}

.mainacttext {
    font-size: 10px;
}

.bg-album {
    background-color: #ffe2f6 !important;
    /* صورتی گرم Bootstrap-ish */
    color: #3d2d6d !important;
}

.border-album {
    border-color: #e83e8c !important;
}

.pjxbtn {
    padding: 5px 6px;
    margin: 0 3px;
    font-size: 16px;
    border: none;
    background: transparent;
    vertical-align: middle;
    transition: 0.2s ease-in-out;
}

.pjxbtn:hover {
    transform: scale(1.2);
    opacity: 0.85;
}

.btn-green {
    color: #28a745;
}

.btn-blue {
    color: #007bff;
}

.btn-orange {
    color: #fd7e14;
}

.btn-red {
    color: #dc3545;
}

.selected-row {
    background-color: #ffe0f0 !important;
    color: #000 !important;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.blink-alert {
    animation: blink 5s infinite;
    background-color: #f8d7da;
    /* قرمز روشن */
    color: #721c24;
    /* قرمز تیره */
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
}

   /*               لودینگ               */

/* استایل لودینگ فول‌اسکرین */
#global-loading {
    display: none; /* اول مخفی */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
    text-align: center;
}

#global-loading .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ff003c;
}
.fa-spinner{
    font-size: 5rem;
}
