﻿/* =============================================
   BUTTONS - برگرفته از demand-detail.css
   برای تمام دکمه‌های سایت
   ============================================= */

/* ----- BASE ----- */
.btn {
    border-radius: 50px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important; /* ← اینو اضافه کن */
    gap: 6px !important;
    /*margin: 5px !important;*/
    cursor: pointer !important;
    border: none !important;
    font-family: IRANSans !important;
    text-decoration: none !important;
    text-align: center !important; /* ← اینم اضافه کن */
}

/* ----- PRIMARY (آبی مدرن) ----- */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25) !important;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35) !important;
    }

/* ----- DANGER (قرمز) ----- */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25) !important;
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35) !important;
    }


/* ----- SUCCESS (سبز) ----- */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25) !important;
}

    .btn-success:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(40, 167, 69, 0.35) !important;
    }

/* ----- DEFAULT (سفید/خاکستری) ----- */
.btn-default {
    background: white !important;
    border: 1px solid rgba(232, 76, 91, 0.2) !important;
    color: #e84c5b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

    .btn-default:hover {
        background: rgba(232, 76, 91, 0.05) !important;
        border-color: #e84c5b !important;
        transform: translateY(-2px) !important;
    }

/* ----- DISABLED ----- */
.btn-text-muted,
.btn-text-muted.disabled,
.btn:disabled {
    background: #f5f5f5 !important;
    color: #bbb !important;
    border: 1px solid #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
}

    .btn-text-muted:hover,
    .btn:disabled:hover {
        transform: none !important;
        box-shadow: none !important;
    }

/* ----- کلاس کمکی ----- */
.a-form-button {
    margin: 5px !important;
}

.disabled-btn {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.btn-block {
    width: 100% !important;
}

/* ----- DARK MODE ----- */
.dark-mode .btn-default {
    background: rgba(30, 30, 42, 0.9) !important;
    color: #f0808d !important;
    border-color: rgba(232, 76, 91, 0.2) !important;
}

.dark-mode .btn-text-muted,
.dark-mode .btn:disabled {
    background: #2f2f2f !important;
    color: #9ca3af !important;
}
/* =============================================
   BACK BUTTON - دکمه بازگشت بالا سمت چپ
   ============================================= */

.btn-back-top {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: white;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

    .btn-back-top:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #ef4444;
        transform: translateX(3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
/*current location*/
.current-loc {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000; /* عدد بزرگ برای بودن روی نقشه */
    background-color: #ffffff;
    border-radius: 50%; /* دکمه دایره‌ای */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

    /* آیکون داخل دکمه */
    .current-loc i {
        color: #1b80e4;
        font-size: 20px;
    }

    /* وقتی ماوس روی دکمه می‌رود */
    .current-loc:hover {
        background-color: #f0f7ff;
        transform: scale(1.05);
        box-shadow: 0px 6px 15px rgba(0,0,0,0.25);
    }

    /* وقتی دکمه کلیک می‌شود (برای حس لمس روی موبایل) */
    .current-loc:active {
        transform: scale(0.95);
    }

/* حالت شب */
.dark-mode .location-btn {
    background-color: #2a2a2a !important;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.4) !important;
}

    .dark-mode .location-btn i {
        color: #ffffff !important;
    }
/* Dark mode */
.dark-mode .btn-back-top {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

    .dark-mode .btn-back-top:hover {
        background: #263348;
        border-color: #475569;
        color: #f87171;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

/* موبایل */
@media (max-width: 767px) {
    .btn-back-top {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        top: 10px;
        left: 10px;
        font-size: 20px;
    }
}