/* ========================================
   فونت پلاک فارسی - استاندارد
   ======================================== */
@font-face {
    font-family: 'PelakFA';
    src: url('/static/font/pelak/woff2/PelakFA-Regular.woff2') format('woff2'),
         url('/static/font/pelak/woff/PelakFA-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PelakFA';
    src: url('/static/font/pelak/woff2/PelakFA-light.woff2') format('woff2'),
         url('/static/font/pelak/woff/PelakFA-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PelakFA';
    src: url('/static/font/pelak/woff2/PelakFA-Bold.woff2') format('woff2'),
         url('/static/font/pelak/woff/PelakFA-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   تنظیمات پایه
   ======================================== */
* {
    font-family: 'PelakFA', 'Tahoma', 'Helvetica Neue', Arial, sans-serif !important;
}

body {
    font-family: 'PelakFA', 'Tahoma', 'Helvetica Neue', Arial, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
    background-color: #f8f9fa !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* ========================================
   لوگوهای اپراتور - کوچک 14px
   ======================================== */
.operator-logo {
    height: 14px !important;
    width: auto !important;
    margin-left: 4px !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

/* ========================================
   لوگوهای بانک - کوچک 16px
   ======================================== */
.bank-logo {
    height: 16px !important;
    width: auto !important;
    margin-left: 4px !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

/* ========================================
   لوگوهای منابع در فوتر - 20px
   ======================================== */
.source-logo,
.data-sources img {
    height: 20px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 3px !important;
}

/* ========================================
   کانتینرهای موبایل و بانک
   ======================================== */
.mobile-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
}

.bank-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
}

/* ========================================
   بخش منابع داده در فوتر
   ======================================== */
.data-sources {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.data-sources small {
    font-weight: 600 !important;
    color: #6c757d !important;
}

/* ========================================
   دکمه کپی - خیلی کوچک
   ======================================== */
.btn .bi-clipboard,
.btn .bi-copy,
.btn .bi-check-circle-fill {
    font-size: 0.7rem !important;
}

.btn-sm {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* ========================================
   کارت‌ها - Metronic
   ======================================== */
.card {
    border-radius: 0.5rem !important;
    border: 1px solid #e4e6ef !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e4e6ef !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
}

.card-body {
    padding: 1.5rem !important;
}

.card-footer {
    background: #f9fafb !important;
    border-top: 1px solid #e4e6ef !important;
    padding: 1rem 1.5rem !important;
}

/* ========================================
   دکمه‌ها
   ======================================== */
.btn {
    border-radius: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.btn-primary {
    background: #3699ff !important;
    border-color: #3699ff !important;
}

.btn-primary:hover {
    background: #187de4 !important;
    border-color: #187de4 !important;
}

/* ========================================
   فرم‌ها
   ======================================== */
.form-control {
    border: 1px solid #e4e6ef !important;
    border-radius: 0.375rem !important;
    padding: 0.65rem 1rem !important;
    transition: all 0.2s ease !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.form-control:focus {
    border-color: #3699ff !important;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.1) !important;
}

/* ========================================
   آیتم‌های داده
   ======================================== */
.data-item {
    background: #f9f9f9 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.75rem !important;
    border-right: 3px solid #e4e6ef !important;
    transition: border-color 0.2s ease !important;
}

.data-item:hover {
    border-right-color: #3699ff !important;
}

.data-item:last-child {
    border-bottom: none !important;
}

.data-label {
    display: block !important;
    font-size: 0.8rem !important;
    color: #7e8299 !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.data-value {
    font-size: 0.95rem !important;
    color: #181c32 !important;
    font-weight: 400 !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   بخش اطلاعات
   ======================================== */
.info-section {
    padding: 1rem !important;
    background: #ffffff !important;
    border-radius: 0.375rem !important;
}

.info-section h6 {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #181c32 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e4e6ef !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   دکمه‌های شبکه اجتماعی
   ======================================== */
.social-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin-left: 4px !important;
}

.whatsapp-btn {
    background: #25d366 !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background: #128c7e !important;
}

.telegram-btn {
    background: #0088cc !important;
    color: white !important;
}

.telegram-btn:hover {
    background: #006699 !important;
}

/* ========================================
   آدرس‌ها
   ======================================== */
.address-item {
    background: #f9fafb !important;
    border: 1px solid #e4e6ef !important;
    border-right: 3px solid #3699ff !important;
    padding: 0.75rem !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   Clickable Items
   ======================================== */
.clickable-item {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.clickable-item:hover {
    color: #3699ff !important;
    text-decoration: underline !important;
}

/* ========================================
   Badge های رنگی
   ======================================== */
.badge {
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.85rem !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.score-excellent { background: #28a745 !important; color: white !important; }
.score-good { background: #5cb85c !important; color: white !important; }
.score-medium { background: #ffc107 !important; color: #000 !important; }
.score-low { background: #fd7e14 !important; color: white !important; }
.score-poor { background: #dc3545 !important; color: white !important; }

/* Badge های بانک */
.bank-meli { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important; color: #000 !important; }
.bank-mellat { background: linear-gradient(135deg, #E30613 0%, #B00000 100%) !important; color: white !important; }
.bank-saderat { background: linear-gradient(135deg, #0066B3 0%, #004080 100%) !important; color: white !important; }
.bank-irancell { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important; color: #000 !important; }

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: #1e1e2d !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.nav-link {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #1e1e2d !important;
    color: #b5b5c3 !important;
    font-size: 0.875rem !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   Modal
   ======================================== */
.modal-content {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.modal-title {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.modal-body {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   Responsive - موبایل
   ======================================== */
@media (max-width: 768px) {
    .operator-logo {
        height: 12px !important;
    }
    
    .bank-logo {
        height: 14px !important;
    }
    
    .source-logo,
    .data-sources img {
        height: 18px !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .info-section {
        padding: 0.75rem !important;
    }
}

/* ========================================
   Loading Animation
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Alert
   ======================================== */
.alert {
    border-radius: 0.375rem !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

.alert-success {
    background: #e8fff3 !important;
    color: #50cd89 !important;
}

.alert-danger {
    background: #fff5f8 !important;
    color: #f1416c !important;
}

.alert-info {
    background: #f1faff !important;
    color: #009ef7 !important;
}

/* ========================================
   Titles
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}

/* ========================================
   Tables
   ======================================== */
.table {
    font-family: 'PelakFA', 'Tahoma', sans-serif !important;
}
/* ========================================
   دکمه کپی - خیلی خیلی کوچک
   ======================================== */
.btn-copy-mini {
    padding: 0.15rem 0.3rem !important;
    font-size: 0.65rem !important;
    line-height: 1 !important;
    border: 1px solid #dee2e6 !important;
}

.btn-copy-mini i {
    font-size: 0.65rem !important;
}

/* دکمه‌های اجتماعی - فقط آیکون */
.social-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    margin-left: 3px !important;
    transition: all 0.2s !important;
}

.social-btn-icon i {
    font-size: 0.9rem !important;
}
