@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-VF.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
}

.search-box-wrapper { 
    position: relative; 
}

.clear-search-btn {
    position: absolute;
    left: 110px; /* Adjust based on search button width */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.5rem;
    line-height: 1;
    display: none;
    z-index: 10;
}

#search-input:not(:placeholder-shown) ~ .clear-search-btn {
    display: block;
}

/* --- New Search Results Styling --- */

/* Clickable search items */
.clickable-search {
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}
.clickable-search:hover {
    background-color: #d1e7dd !important; /* A light green to indicate action */
    border-color: #b2dfc1 !important;
}

/* Item container for clickable items with copy buttons */
.item-container {
    position: relative;
    display: inline-block;
    margin-right: 0.25rem;
    margin-bottom: 0.35rem;
}

/* Copy button styling - inside the badge */
.copy-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    font-size: 8px;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Profile Card Styles */
.profile-card .card-body p { margin-bottom: 0.6rem; }
.info-list { margin-bottom: 1rem; }
.info-list .badge { 
    font-size: 1em; 
    font-weight: 500; 
    padding: 0.4em 0.7em;
    position: relative;
}
.info-list .badge:nth-child(odd) { background-color: #e9ecef; color: #212529; border: 1px solid #dee2e6; }
.info-list .badge:nth-child(even) { background-color: #f8f9fa; color: #212529; border: 1px solid #dee2e6; }

.info-list .d-block { font-size: 0.9em; }
.border-end-lg { border-right: 1px solid #dee2e6 !important; }
@media (max-width: 992px) { .border-end-lg { border-right: none !important; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #dee2e6 !important;} }

/* Operator Colors */
.operator-همراه-اول { background-color: #e0f2f1 !important; color: #004d40 !important; border-color: #b2dfdb !important;}
.operator-ایرانسل { background-color: #fffde7 !important; color: #f57f17 !important; border-color: #fff9c4 !important;}
.operator-رایتل { background-color: #f3e5f5 !important; color: #4a148c !important; border-color: #e1bee7 !important;}
.operator-تالیا { background-color: #ffebee !important; color: #b71c1c !important; border-color: #ffcdd2 !important;}
.operator-سایر { background-color: #f5f5f5 !important; color: #424242 !important; border-color: #e0e0e0 !important;}

/* Bank-specific badge colors */
.source-badge.source-ملت { background-color: #dc3545 !important; color: white !important; }
.source-badge.source-ملی { background-color: #198754 !important; color: white !important; }
.source-badge.source-صادرات { background-color: #0d6efd !important; color: white !important; }
.source-badge.source-ایرانسل { background-color: #ffc107 !important; color: black !important; }

/* Source header colors for detailed results */
.source-bmedb { background-color: #198754 !important; color: white !important; }
.source-bmelldb { background-color: #dc3545 !important; color: white !important; }
.source-bsdb { background-color: #0d6efd !important; color: white !important; }
.source-irancell { background-color: #ffc107 !important; color: black !important; }

.unified-tab-color { background-color: #d1e7dd !important; border-color: #b2dfc1 !important; color: #0f5132 !important; }

.progress-bar { font-weight: bold; }
.score-bar-1, .score-bar-2, .score-bar-3 { background-color: #ffc107; } /* Yellow for low */
.score-bar-4, .score-bar-5, .score-bar-6, .score-bar-7 { background-color: #198754; } /* Green for medium */
.score-bar-8, .score-bar-9, .score-bar-10 { background-color: #0d6efd; } /* Blue for high */

/* Address section improvements */
.address-section {
    background-color: #fefefe;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.address-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.5;
    border-right: 3px solid #007bff;
}

.address-item:last-child {
    margin-bottom: 0;
}

/* National ID copy button special styling */
.national-id-container {
    position: relative;
}

.national-id-copy {
    position: absolute;
    top: 0;
    left: -20px;
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 8px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.national-id-copy:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
}
