/* PoliceTrack Pro — Müşteri Portalı CSS */
.ptp-portal { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

/* ---------- Portal Header ---------- */
.ptp-portal-header {
    background: #0C1B33;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ptp-portal-header .ptp-ph-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: #378ADD; display: flex;
    align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; color: white; flex-shrink: 0;
}
.ptp-portal-header .ptp-ph-name { font-size: 18px; font-weight: 600; color: white; }
.ptp-portal-header .ptp-ph-sub  { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ---------- Özet Metrik Kartları ---------- */
.ptp-portal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.ptp-pm {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.ptp-pm-icon { font-size: 22px; margin-bottom: 6px; }
.ptp-pm-num  { font-size: 24px; font-weight: 700; color: #0C1B33; }
.ptp-pm-lbl  { font-size: 12px; color: #888; margin-top: 2px; }

/* ---------- Section ---------- */
.ptp-portal-section { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.ptp-portal-section-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin: 0 0 14px; display:flex; align-items:center; gap:8px; }

/* ---------- Poliçe Kartları ---------- */
.ptp-police-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.ptp-police-card:last-child { border-bottom: none; padding-bottom: 0; }
.ptp-police-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.ptp-police-info { flex: 1; min-width: 0; }
.ptp-police-type { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ptp-police-no   { font-size: 12px; color: #888; margin-top: 1px; }
.ptp-police-meta { font-size: 12px; color: #555; margin-top: 4px; }
.ptp-police-right { text-align: right; flex-shrink: 0; }
.ptp-police-prim  { font-size: 14px; font-weight: 700; color: #0C1B33; }
.ptp-police-date  { font-size: 11px; color: #888; margin-top: 2px; }

/* ---------- Badge ---------- */
.ptp-badge { display:inline-block; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:500; }
.ptp-badge-green  { background: #E1F5EE; color: #0F6E56; }
.ptp-badge-amber  { background: #FAEEDA; color: #854F0B; }
.ptp-badge-red    { background: #FCEBEB; color: #A32D2D; }
.ptp-badge-blue   { background: #E6F1FB; color: #0C447C; }
.ptp-badge-gray   { background: #F1EFE8; color: #5F5E5A; }

/* ---------- Teklif Satırı ---------- */
.ptp-teklif-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; background: #F8FAFB;
    border-radius: 8px; margin-bottom: 8px;
}
.ptp-teklif-row:last-child { margin-bottom: 0; }
.ptp-teklif-info { flex: 1; }
.ptp-teklif-type { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.ptp-teklif-meta { font-size: 11px; color: #888; margin-top: 2px; }
.ptp-teklif-price{ font-size: 15px; font-weight: 700; color: #378ADD; }

/* ---------- Bildirim Satırı ---------- */
.ptp-notif-row { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid rgba(0,0,0,.05); }
.ptp-notif-row:last-child { border-bottom:none; }
.ptp-notif-dot { width:9px; height:9px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.ptp-notif-text { font-size:13px; color:#333; line-height:1.6; }
.ptp-notif-time { font-size:11px; color:#aaa; margin-top:3px; }

/* ---------- Alert ---------- */
.ptp-portal-alert { padding:14px 18px; border-radius:8px; font-size:13px; margin-bottom:16px; border-left:4px solid; }
.ptp-portal-alert-warn { background:#FAEEDA; color:#854F0B; border-color:#EF9F27; }
.ptp-portal-alert-info { background:#E6F1FB; color:#0C447C; border-color:#378ADD; }
.ptp-portal-alert-success { background:#E1F5EE; color:#0F6E56; border-color:#1D9E75; }

/* ---------- Navigation Tabs ---------- */
.ptp-portal-tabs { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:20px; }
.ptp-portal-tab {
    padding:8px 14px; border-radius:6px; font-size:13px; font-weight:500;
    text-decoration:none; color:#555; background:#F1EFE8;
    transition:all .15s;
}
.ptp-portal-tab:hover, .ptp-portal-tab.active {
    background: #0C1B33; color: white;
}

/* ---------- PDF Button ---------- */
.ptp-pdf-btn {
    display:inline-flex; align-items:center; gap:5px;
    padding:5px 12px; border-radius:6px;
    font-size:12px; font-weight:500; text-decoration:none;
    border: 1px solid rgba(0,0,0,.15); color:#444;
    transition:all .15s;
}
.ptp-pdf-btn:hover { background:#0C1B33; color:white; border-color:#0C1B33; }

/* ---------- Teklif Talep Formu ---------- */
.ptp-teklif-form { background:#F8FAFB; border-radius:10px; padding:20px; margin-top:16px; }
.ptp-teklif-form select,
.ptp-teklif-form textarea { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:6px; font-size:13px; font-family:inherit; margin-bottom:10px; }
.ptp-submit-btn { background:#0C1B33; color:white; border:none; padding:10px 20px; border-radius:6px; font-size:13px; font-weight:500; cursor:pointer; }
.ptp-submit-btn:hover { opacity:.85; }

@media(max-width:600px) {
    .ptp-portal-metrics { grid-template-columns:1fr 1fr; }
    .ptp-police-card { flex-wrap:wrap; }
}
