/* ==============================================
   DASHBOARD WIDGETS — DARK MODE
   ============================================== */

/* Base Widget Card */
.widget-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    /* Layered resting shadow */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px -3px rgba(0, 0, 0, 0.05),
        0 12px 24px -8px rgba(0, 0, 0, 0.03);
}

.widget-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 133, 255, 0.12);
    box-shadow:
        0 4px 8px -2px rgba(0, 0, 0, 0.06),
        0 16px 36px -8px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 133, 255, 0.05);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

/* --- Profile Strength Widget --- */
.profile-strength-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.strength-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-percentage {
    position: absolute;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.strength-text {
    text-align: center;
    margin-top: -10px;
}

.strength-label {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.strength-cta {
    color: #0085FF;
    font-weight: 600;
    cursor: pointer;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.strength-cta:hover {
    gap: 8px;
    text-decoration: underline;
}

/* --- Activity Timeline Widget --- */
.activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Vertical Line */
.activity-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0085FF;
    z-index: 1;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    padding-top: 2px;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.4;
}

.activity-content strong {
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* --- Upgrade Widget --- */
.card-upgrade {
    background: linear-gradient(135deg, rgba(0, 133, 255, 0.08) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(0, 133, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 133, 255, 0.08),
        0 8px 24px -6px rgba(0, 133, 255, 0.12);
}

.card-upgrade::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #0085FF 0%, #6366f1 100%);
    filter: blur(70px);
    opacity: 0.25;
}

.upgrade-content {
    position: relative;
    z-index: 1;
}

.upgrade-badge {
    background: linear-gradient(135deg, #0085FF 0%, #005099 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

/* --- Suggested Connections Widget --- */
.connections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.connection-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.connection-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.connection-info {
    flex: 1;
    min-width: 0;
}

.connection-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-role {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-connect {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.95);
    color: #0085FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-connect:hover {
    background: #0085FF;
    color: white;
    border-color: #0085FF;
}