﻿.app-header {
    box-shadow: none !important;
}

.font-75rem {
    font-size: 0.750rem !important;
}

.bell-lable {
    top: 0.4rem !important;
}

.btn-icon-text {
    margin-left: 6px;
    position: relative;
    top: 2px;
}

.btn-padding-rl {
    padding-right: 16px;
    padding-left: 16px;
}

.toast {
    min-width: 250px;
    max-width: 350px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

    .toast.show {
        opacity: 1;
    }

    .toast.hide {
        opacity: 0;
    }

/* رنگ پس‌زمینه ملایم سبز و قرمز */
.bg-toast-success {
    background-color: #198754 !important; /* سبز Bootstrap اصلی */
    background-color: rgba(25, 135, 84, 0.85) !important; /* کمی شفاف‌تر */
}

.bg-toast-danger {
    background-color: #dc3545 !important; /* قرمز Bootstrap اصلی */
    background-color: rgb(209 41 57 / 90%) !important /* کمی شفاف‌تر */ /* کمی شفاف‌تر */
}

/* متن سفید و کمی ضخیم‌تر */
.toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

    .toast .toast-body {
        font-weight: 500;
        color: #fff;
        font-size: var(--bs-body-font-size);
    }


.dataTables_wrapper .top {
    display: flex;
    justify-content: space-between; /* فاصله گرفتن از هم */
    align-items: center; /* تراز عمودی */
    flex-wrap: nowrap; /* در یک خط نگه داره */
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    float: none !important;
}

.dt-container .top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}


.dt-container .dt-length {
    flex: 0 0 auto; /* اندازه ثابت بر اساس محتوا */
}

.dt-container .dt-search {
    flex: 1 1 auto; /* فضای باقی‌مانده رو اشغال کنه */
    min-width: 150px; /* حداقل اندازه */
    max-width: 100%; /* بیشینه */
}

.dt-container .top .dt-search input {
    width: 70%; /* عرض دلخواه */
    max-width: 100%;
}

.dt-container .bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

table tbody tr td {
    vertical-align: middle; /* وسط چین عمودی */
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    margin-left: 5px;
    position: relative;
    top: 4px;
}

.active {
    background-color: #3472ff42;
    border-radius: 30px;
}

.menu-item {
    margin-top: 5px;
}

input {
    margin-bottom: 5px;
}

.select2 {
    border: 1px solid #d1d9e7 !important;
}

.select2-container {
    /* */
    border-radius: 4px !important;
    padding-top: 5px;
}

.select2-results__option--highlighted {
    background-color: #3472ff42 !important;
}

.access-denied-code {
    font-size: 7.5rem;
}

.error-page {
    padding: 0 !important;
}

#LinkDashboard.active, #LinkUserBank.active, #LinkMyTransaction.active {
    width: 95% !important;
}

body, html {
    height: 100%;
}

.text-bold {
    font-weight: bold !important;
}

.text-italic {
    font-style: italic !important;
}

.font-size-095rem {
    font-size: 0.95rem !important;
}

.pb-075 {
    padding-bottom: 0.75rem !important;
}

.pt-075 {
    padding-top: 0.75rem !important;
}

.img-circle {
    border-radius: 50%;
}

.app-sidebar-mobile-backdrop {
    right: 240px !important;
}

.border-index-quantity {
    border: 1px solid #d1d9e7;
    border-radius: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #FAFAFA;
}

.border-index-quantity-label {
    position: absolute;
    top: 20px;
    right: 40px;
    background-color: #ffffff;
    font-weight: bold;
}

.mt-btn {
    margin-top: 20px;
}

.height-35 {
    height: 35px;
}

.show-price {
    border: 1px solid #d1d9e7;
    border-radius: 8px;
    background-color: #FAFAFA;
}

.bg-success2 {
    background-color: #095F1F !important;
}

.bg-danger2 {
    background-color: rgb(167 14 6) !important;
}

.show-price-box {
    border: 1px solid #d1d9e7;
    border-radius: 8px;
    padding-top: 16px;
    padding-left: 10px;
    padding-right: 10px;
}

.show-price-label {
    position: relative;
    background-color: #ffffff;
    top: 10px;
    right: 15px;
    font-weight: bold;
}

#pricesContainer {
    position: relative;
}

.overlay-disabled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(179 179 179 / 96%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid;
    border-radius: 8px;
}

.overlay-text {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #aaa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* برای محو کردن اسکرول و جلوگیری از کلیک */
.overlay-disabled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: all;
}










.overlay-disabled-sell, .overlay-disabled-buy {
    position: absolute;
    top: -7px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(179 179 179 / 0%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*border: 1px solid;*/
    border-radius: 8px;
}




.overlay-text-sell {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #aaa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.overlay-text-buy {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #aaa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* برای محو کردن اسکرول و جلوگیری از کلیک */
.overlay-disabled-sell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: all;
}

.overlay-disabled-buy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: all;
}















.border-buy-price {
    border: 1px solid #124708;
    padding-bottom: 8px;
    padding-top: 8px;
    /*border-end-start-radius: 8px;
    border-start-start-radius: 8px;*/
    background-color: #2a6d21;
    color: #ffffff;
}

.border-buy-price2 {
    border: 1px solid #124708;
    padding-bottom: 8px;
    padding-top: 8px;
    /* border-end-end-radius: 8px;
    border-start-end-radius: 8px;*/
    background-color: #2a6d21;
    color: #ffffff;
}

.input-error {
    border: 1px solid red !important; /* !important برای روی‌زدن استایل‌های دیگر */
    box-shadow: none !important;
    outline: none;
    transition: border 2s ease;
}

.border-radius-0 {
    border-radius: 0 !important;
}

.timer-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.timer-circle {
    transform: rotate(-90deg);
}

    .timer-circle circle:nth-child(2) {
        transition: stroke-dashoffset 1s linear;
        transform: rotate(0deg);
        transform-origin: 50% 50%;
    }

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
}


.border-sell-price {
    border: 1px solid #47081d;
    padding-bottom: 8px;
    padding-top: 8px;
    background-color: #6d2121;
    color: #ffffff;
}

.btn-menu{
    border:0px !important;
    background-color:transparent !important;
}

.w-fit-content {
    width: fit-content !important;
}
.line-height-1-9rem{
    line-height:1.9rem;
}

.bg-table-gold {
    background-color: #FFF1E6 !important;
}

.bg-table-price {
    background-color: #E6F0FF !important;
}

.my-bg-success {
    background-color: #E6F6EE !important;
}

.my-bg-danger {
    background-color: #FCEAEA !important;
}

.money-date {
    background: #f1f1f1;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.price-info-box {
    background: linear-gradient(135deg, #fff7df, #ffefd0);
    border: 1px solid #e7d7b1;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

    .price-info-box  {
        color: #a67c00;
        font-weight: 800;
        font-size: 1.1rem;
    }

/* کارت قیمت هر گرم طلای ۱۸ عیار */
.gold-card {
    border-radius: 16px;
    padding: 12px 15px; /* ← پدینگ کمتر */
    background: linear-gradient(135deg, #fff8d9, #fffdf3); /* زرد خیلی خیلی ملایم */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #f1e4b8; /* مرز طلایی کم‌رنگ */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px; /* ← فاصله از پایین اضافه شد */
    position: relative;
    overflow: hidden;
  /*  animation: floatCard 4s ease-in-out infinite;
    animation-delay: .9s;*/
}

    /* لایه گرادیان خیلی ظریف */
    .gold-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #ffe9a7, #fff4d1);
        opacity: 0.08; /* ملایم‌تر */
        pointer-events: none;
    }

/* عنوان */
.gold-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5b4a1f; /* طلایی قهوه‌ای شیک */
}

/* قیمت */
.gold-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3a2e10; /* تیره ولی هماهنگ */
}

/* موبایل */
@media (max-width: 576px) {
    .gold-card {
        padding: 10px 15px;
        text-align: center;
        gap: 6px;
    }

    .gold-title {
        font-size: 0.95rem;
    }

    .gold-price {
        font-size: 1.1rem;
    }
}


/* لایه ملایم */
.gold-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffe9a7, #fff4d1);
    opacity: 0.08;
    pointer-events: none;
}

/* هاور مثل کارت‌های خرید/فروش */
.gold-card:hover {
   /* transform: translateY(-2px);*/
    box-shadow: 0 4px 22px rgba(0,0,0,0.14);
}
/*
@keyframes floatCard {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}
*/













/* کارت خرید و فروش */
/* کارت خرید و فروش */
.buy-card, .sell-card {
    border-radius: 22px;
    padding: 26px 18px;
    border: 2px solid rgba(0,0,0,0.08) !important; /* ضخیم و قابل‌دیدن */
    transition: 0.3s ease;
    margin-bottom: 20px;
    min-height: 155px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

    /* گرادیان مشخص‌تر */
    .buy-card::before,
    .sell-card::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.20; /* قبلاً 0.12 بود → گرادیان حالا معلوم‌تره */
        pointer-events: none;
        z-index: 1;
    }

    /* گرادیان‌های جدید */
    .buy-card::before {
        background: linear-gradient(135deg, #27c56e, #0b6f36);
    }

    .sell-card::before {
        background: linear-gradient(135deg, #e25757, #9e1a1a);
    }

    /* افکت هاور */
    .buy-card:hover, .sell-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 26px rgba(0,0,0,0.20);
    }

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

    /* فاصله‌ها را جداگانه کنترل می‌کنیم */
    .card-content .action-title {
        margin-bottom: 6px; /* فاصله کم با آیکون */
    }

    .card-content .icon {
        margin-bottom: 14px; /* فاصله بیشتر با مبلغ */
    }

    .card-content .price {
        margin-top: 0;
    }

/* آیکون کوچک‌تر شده */
.buy-card .icon,
.sell-card .icon {
    font-size: 1.9rem; /* ⚡ از 2.3rem کوچک‌تر شد */
}

/* رنگ‌های ویژه آیکون */
.buy-card .icon {
    color: #0a753e;
}

.sell-card .icon {
    color: #b12432;
}

/* قیمت */
.price {
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0;
    color: #222;
}

/* حالت موبایل */
@media (max-width: 576px) {
    .buy-card, .sell-card {
        min-height: 165px;
        padding: 28px 16px;
        border-radius: 20px;
    }

    .icon {
        font-size: 1.8rem !important; /* در موبایل کوچک‌تر */
    }

    .price {
        font-size: 1.15rem;
    }
}

/* انیمیشن شناور کارت */
.buy-card, .sell-card {
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* انیمیشن آیکون هنگام هاور */
.buy-card:hover .icon,
.sell-card:hover .icon {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}
/* بوردر هماهنگ با گرادیان کارت‌ها */
.buy-card {
    border: 2px solid rgba(31, 167, 86, 0.55) !important; /* سبز لوکس + مشخص */
}

.sell-card {
    border: 2px solid rgba(214, 77, 77, 0.55) !important; /* قرمز مالی شیک */
}







.btn-buy-gold .icon {
    animation: heartbeat 5s ease-in-out infinite;
}


.btn-sell-gold .icon {
    animation: heartbeat 4s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.35) rotate(4deg);
    }

    30% {
        transform: scale(1) rotate(0deg);
    }

    40% {
        transform: scale(1.35) rotate(4deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }
}


@keyframes premiumGold {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 0 rgba(255, 180, 0, 0));
    }

    50% {
        transform: scale(1.2) rotate(4deg);
        filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.8));
    }
}


@keyframes shakeAnim {
    0%, 100% {
        transform: translateX(0);
    }

    2% {
        transform: translateX(-3px);
    }

    4% {
        transform: translateX(3px);
    }

    6% {
        transform: translateX(-2px);
    }

    8% {
        transform: translateX(2px);
    }
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(0.95);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    }

    50% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    }
}

@keyframes wiggleSoft {
    0%, 100% {
        transform: rotate(0deg);
    }

    3% {
        transform: rotate(6deg);
    }

    6% {
        transform: rotate(-6deg);
    }

    9% {
        transform: rotate(3deg);
    }

    12% {
        transform: rotate(0deg);
    }
}


@keyframes riseUp {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}



.price {
    white-space: nowrap; /* ← مهم‌ترین خط */
    font-size: clamp(10px, 3.8vw, 16px);
}

.gold-title, .gold-price {
    font-size: clamp(10px, 3.8vw, 16px);
}

@media (max-width: 768px) {
    .card-content {
        padding: 0px !important;
    }
    .icon{
        font-size:1.2rem !important;
    }

    .buy-card, .sell-card{
        min-height:120px;
    }

    .btn-secend-buy{
        width:100% !important;
    }
}

@media (max-width: 576px){
    .icon {
        /*display:none;*/
        font-size: 1rem !important;
    }
    .buy-card, .sell-card {
        min-height: 100px;
    }
}

@media (max-width: 360px) {
    .icon {
        display:none;
    }
}

.btn-secend-buy, btn-secend-sell {
    margin-bottom: 15px;
    animation: floatCard 4s ease-in-out infinite;
    width:50%;
}