/* ═══════════════════════════════════════════════════════════════
   SERVİS SEÇİM MODALI — servis-secim-modal.css v2
   ═══════════════════════════════════════════════════════════════ */

/* ── Top-bar buton ───────────────────────────────────────────── */
.ssm-topbar-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
    color: inherit; cursor: pointer; font-size: 14px;
    margin-left: 6px; transition: all .15s;
}
.ssm-topbar-btn:hover {
    background: rgba(255,255,255,.22); transform: scale(1.08);
}

/* ── Arama ───────────────────────────────────────────────────── */
.ssm-search-bar {
    position: relative; margin-bottom: 20px;
}
.ssm-search-bar i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted, #94a3b8); font-size: 1rem;
}
.ssm-search-bar input {
    padding-left: 40px; width: 100%; height: 44px;
    border-radius: 10px; font-size: .9rem;
}

/* ── Grid ────────────────────────────────────────────────────── */
.ssm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    margin-top: 50px;
}

/* ── Kart ────────────────────────────────────────────────────── */
.ssm-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 12px;
    background: var(--bg-primary, #fff);
    border: 2px solid var(--border-color, #e2e8f0);
    cursor: pointer; transition: all .18s ease;
    position: relative; overflow: hidden;
    min-width: 0;
}
.ssm-card:hover {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .12);
    transform: translateY(-2px);
}
.ssm-card.ssm-aktif {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

/* ── Logo ────────────────────────────────────────────────────── */
.ssm-card-logo {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ssm-logo-img {
    width: 100%; height: 100%; object-fit: contain;
    border-radius: 12px;
}
.ssm-logo-placeholder {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #3b82f6;
}

/* ── Bilgi ───────────────────────────────────────────────────── */
.ssm-card-info {
    flex: 1; min-width: 0;
}
.ssm-card-adi {
    font-weight: 700; font-size: .92rem;
    color: var(--text-primary, #1e293b);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ssm-card-kod {
    font-size: .76rem; color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

/* ── Aktif Badge ─────────────────────────────────────────────── */
.ssm-aktif-badge {
    position: absolute; top: 8px; right: 10px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 10px;
    font-size: .7rem; font-weight: 600;
    background: #dcfce7; color: #16a34a;
}

/* ── Varsayılan Badge ────────────────────────────────────────── */
.ssm-varsayilan-badge {
    position: absolute; top: 8px; right: 10px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 10px;
    font-size: .7rem; font-weight: 600;
    background: #fef3c7; color: #d97706;
}
.ssm-varsayilan-btn {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 6px; padding: 3px 10px; border-radius: 6px;
    font-size: .72rem; font-weight: 600;
    background: #fef9c3; color: #a16207;
    border: 1px solid #fde68a; cursor: pointer;
    transition: all .15s;
}
.ssm-varsayilan-btn:hover {
    background: #fde68a; color: #92400e;
    transform: translateY(-1px);
}

/* ── Boş ─────────────────────────────────────────────────────── */
.ssm-empty {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px 20px;
    color: var(--text-muted, #94a3b8);
}
.ssm-empty i { font-size: 2rem; margin-bottom: 10px; }

/* ── Sidebar Servis Buton ─────────────────────────────────────── */
.sb-servis-switch {
    flex-shrink: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    background: var(--sb-bg, #fff);
}
.sb-servis-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px 12px; border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe; cursor: pointer;
    transition: all .18s ease; color: #1e40af;
}
.sb-servis-btn:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 2px 8px rgba(59, 130, 246, .15);
    transform: translateY(-1px);
}
.sb-servis-btn-logo {
    width: 36px; height: 36px; border-radius: 8px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0; color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.sb-servis-btn-logo img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.sb-servis-btn-info {
    flex: 1; min-width: 0; text-align: left;
}
.sb-servis-btn-name {
    display: block; font-weight: 700; font-size: .82rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #1e293b;
}
.sb-servis-btn-hint {
    display: block; font-size: .68rem; color: #64748b;
    margin-top: 1px;
}
.sb-servis-btn-arrow {
    font-size: 1rem; color: #94a3b8; flex-shrink: 0;
}

/* Sidebar collapsed durumunda */
.sidebar.collapsed .sb-servis-switch { padding: 8px; }
.sidebar.collapsed .sb-servis-btn { justify-content: center; padding: 8px; }
.sidebar.collapsed .sb-servis-btn-info,
.sidebar.collapsed .sb-servis-btn-arrow,
.sidebar.collapsed .sb-servis-btn-hint { display: none; }
.sidebar.collapsed .sb-servis-btn-logo { width: 32px; height: 32px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
    .sb-servis-switch { /* responsive — ek margin kaldırıldı */ }
}
@media (max-width: 768px) {
    .ssm-grid { grid-template-columns: 1fr; }
}
