:root {
    --tp-primary: #0e7490;
    --tp-primary-dark: #164e63;
}

body {
    background-color: #f4f6f5;
}

.navbar-brand {
    font-weight: 700;
}

.bg-tp {
    background-color: var(--tp-primary) !important;
}

.btn-tp {
    background-color: var(--tp-primary);
    border-color: var(--tp-primary);
    color: #fff;
}

.btn-tp:hover {
    background-color: var(--tp-primary-dark);
    border-color: var(--tp-primary-dark);
    color: #fff;
}

.badge-status-active { background-color: #198754; }
.badge-status-pending { background-color: #fd7e14; }
.badge-status-expired { background-color: #6c757d; }
.badge-status-suspended { background-color: #dc3545; }
.badge-status-verified { background-color: #198754; }
.badge-status-rejected { background-color: #dc3545; }

/* --- Digital ID card --- */
.id-card {
    width: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    margin: 0 auto;
}

.id-card-header {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-dark));
    color: #fff;
    padding: 14px 16px;
    text-align: center;
}

.id-card-header h5 { margin: 0; font-weight: 700; }
.id-card-header small { opacity: .85; }

.id-card-body {
    padding: 18px 16px;
    display: flex;
    gap: 14px;
}

.id-card-photo {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    object-fit: cover;
    background: #e9ecef;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.id-card-info { flex: 1; min-width: 0; }
.id-card-info .name { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.id-card-info .code { font-family: monospace; color: #555; }
.id-card-info dl { margin: 8px 0 0; font-size: .82rem; }
.id-card-info dt { color: #888; font-weight: 500; float: left; width: 70px; clear: left; }
.id-card-info dd { margin-left: 70px; margin-bottom: 2px; }

.id-card-footer {
    padding: 10px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #ddd;
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .id-card { box-shadow: none; }
}
