:root {
    --primary-color: #6366f1;
    --sidebar-width: 280px;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --bg-body: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    body { background-color: var(--bg-body) !important; color: var(--text-color); }
}

body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-body); transition: var(--transition); }
.fw-700 { font-weight: 700; }

/* Sidebar & Layout */
#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--card-bg);
    transition: var(--transition);
}

.list-group-item { border: none; padding: 0.8rem 1.2rem; margin-bottom: 5px; color: #64748b; }
.list-group-item.active { background-color: rgba(99, 102, 241, 0.1); color: var(--primary-color); font-weight: 600; }

.blur-nav { backdrop-filter: blur(10px); background: rgba(255,255,255,0.8); }
[data-bs-theme="dark"] .blur-nav { background: rgba(30, 41, 59, 0.8); }

/* Contact Cards */
.contact-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Profile Images */
.avatar-preview, .avatar-card {
    width: 80px; height: 80px;
    border-radius: 28px;
    object-fit: cover;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
}

.avatar-card { width: 60px; height: 60px; border-radius: 20px; }

/* Themes & UI Elements */
.theme-switch {
    width: 45px; height: 45px;
    border-radius: 15px;
    background: rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.fab {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 20px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Badges */
.badge-Work { background: #e0e7ff; color: #4338ca; }
.badge-Personal { background: #dcfce7; color: #15803d; }
.badge-Family { background: #fef3c7; color: #b45309; }

@media (max-width: 991px) {
    #sidebar-wrapper { margin-left: -var(--sidebar-width); position: fixed; z-index: 1050; }
    #wrapper.toggled #sidebar-wrapper { margin-left: 0; }
}