/* ═══════════════════════════════════════════════════════════════════
   PPS Portal V3 — Enhancement Styles
   Toast notifications, breadcrumbs, skeletons, empty states
   ═══════════════════════════════════════════════════════════════════ */

/* ─── TOAST NOTIFICATIONS ─────────────────────────────────────────── */
.v3-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.v3-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    animation: v3ToastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    border-left: 4px solid #1976d2;
    max-width: 100%;
}
.v3-toast.toast-success { border-left-color: #2e7d32; }
.v3-toast.toast-error { border-left-color: #c62828; }
.v3-toast.toast-warning { border-left-color: #f57c00; }
.v3-toast.toast-info { border-left-color: #1976d2; }

.v3-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.v3-toast.toast-success .v3-toast-icon { background: #e8f5e9; color: #2e7d32; }
.v3-toast.toast-error .v3-toast-icon { background: #fce4ec; color: #c62828; }
.v3-toast.toast-warning .v3-toast-icon { background: #fff3e0; color: #f57c00; }
.v3-toast.toast-info .v3-toast-icon { background: #e3f2fd; color: #1976d2; }

.v3-toast-content { flex: 1; min-width: 0; }
.v3-toast-title { font-weight: 700; font-size: 0.85rem; color: #1a1a2e; margin-bottom: 2px; }
.v3-toast-message { font-size: 0.8rem; color: #6c757d; line-height: 1.4; }
.v3-toast-close {
    background: none; border: none; padding: 2px; cursor: pointer;
    color: #adb5bd; font-size: 18px; line-height: 1;
    transition: color 0.2s;
}
.v3-toast-close:hover { color: #495057; }

.v3-toast.removing {
    animation: v3ToastOut 0.3s ease forwards;
}

@keyframes v3ToastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes v3ToastOut {
    to { opacity: 0; transform: translateX(40px) scale(0.95); height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* Mobile: full width toasts */
@media (max-width: 576px) {
    .v3-toast-container {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ─── BREADCRUMBS ─────────────────────────────────────────────────── */
.v3-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0 0 4px 0;
    list-style: none;
    font-size: 0.75rem;
}
.v3-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8392ab;
}
.v3-breadcrumb li a {
    color: #8392ab;
    text-decoration: none;
    transition: color 0.2s;
}
.v3-breadcrumb li a:hover { color: #c62828; }
.v3-breadcrumb li.active { color: #344767; font-weight: 600; }
.v3-breadcrumb li + li::before {
    content: '/';
    color: #ccc;
    font-size: 0.7rem;
}

/* ─── LOADING SKELETON ────────────────────────────────────────────── */
.v3-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: v3Shimmer 1.5s infinite;
    border-radius: 8px;
}
.v3-skeleton-text { height: 14px; margin-bottom: 8px; }
.v3-skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.v3-skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.v3-skeleton-card { height: 120px; border-radius: 12px; }

@keyframes v3Shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── EMPTY STATES ────────────────────────────────────────────────── */
.v3-empty-state {
    text-align: center;
    padding: 48px 24px;
}
.v3-empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.v3-empty-state-icon i { font-size: 36px; color: #bdbdbd; }
.v3-empty-state h6 { color: #6c757d; font-size: 1rem; margin-bottom: 8px; }
.v3-empty-state p { color: #9e9e9e; font-size: 0.85rem; max-width: 320px; margin: 0 auto; }

/* ─── PROFILE COMPLETION BAR ──────────────────────────────────────── */
.v3-profile-completion {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f0f0f0;
}
.v3-profile-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.v3-profile-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── NOTIFICATION BADGES (Sidebar) ──────────────────────────────── */
.v3-sidebar-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #c62828;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: auto;
    animation: v3BadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes v3BadgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ─── CPD PROGRESS RING ───────────────────────────────────────────── */
.v3-cpd-ring {
    width: 56px;
    height: 56px;
    position: relative;
}
.v3-cpd-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.v3-cpd-ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 4;
}
.v3-cpd-ring-fill {
    fill: none;
    stroke: #1565c0;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.v3-cpd-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #344767;
}

/* ─── PAGE HEADER ─────────────────────────────────────────────────── */
.v3-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.v3-page-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.v3-page-header p {
    font-size: 0.85rem;
    color: #8392ab;
    margin: 4px 0 0;
}
