/* ─── إضافات CSS للنظام ─── */

.stat-mini { border-radius: 10px; padding: 12px 8px; color: white; }
.stat-mini.stat-blue   { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.stat-mini.stat-green  { background: linear-gradient(135deg,#16a34a,#15803d); }
.stat-mini.stat-orange { background: linear-gradient(135deg,#ea580c,#c2410c); }

.pic-thumb-small {
    cursor: pointer; border-radius: 8px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: transform .15s, box-shadow .15s;
}
.pic-thumb-small:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

.pdf-thumb {
    padding: 12px; text-align: center; background: #fff5f5;
    min-height: 80px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* ─── صفحة البحث ─── */
.search-welcome {
    text-align: center; padding: 60px 20px;
    background: white; border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.search-welcome-icon {
    width: 80px; height: 80px;
    background: #dbeafe; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: #2563eb; margin: 0 auto;
}

.search-hint {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 8px 16px;
    font-size: 14px; color: #475569;
}

.section-card { transition: all .2s ease; }
.section-card:hover {
    border-color: #2563eb !important;
    box-shadow: 0 4px 20px rgba(37,99,235,.15) !important;
    transform: translateY(-2px);
}

.section-icon {
    width: 48px; height: 48px;
    background: #dbeafe; color: #2563eb;
    border-radius: 12px; display: flex;
    align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.mini-stat { background: #f8fafc; border-radius: 8px; padding: 10px 8px; }
.mini-val  { font-size: 20px; font-weight: 700; line-height: 1; }
.mini-lbl  { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.result-info-card {
    border-radius: 10px; padding: 16px; text-align: center;
    height: 100%; display: flex; flex-direction: column; align-items: center;
}
.result-info-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.result-info-value { font-size: 22px; font-weight: 700; line-height: 1.2; margin-top: 4px; }

/* ─── طباعة ─── */
@media print {
    .sidebar, .topbar, .btn, .nav-tabs { display: none !important; }
    .main-content { margin-right: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ─── الشعار الرسمي ─────────────────────────────────── */
.sidebar-logo {
    width: 48px !important;
    height: 48px !important;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
}

.sidebar-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    display: block;
}

.login-icon {
    width: 90px !important;
    height: 90px !important;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    overflow: hidden;
}

.login-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 74px !important;
    max-height: 74px !important;
    object-fit: contain;
    display: block;
}
