/* manage/css/profile-dashboard-styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.profile-dashboard {
    font-family: 'Outfit', sans-serif;
    color: #334155;
    padding: 20px;
    background-color: #f8fafc;
    min-height: calc(100vh - 60px);
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    padding: 10px 0;
    max-width: 1440px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .profile-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card-centered {
        max-width: 100%;
    }
}


/* Hero Section */
.profile-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 40px;
    color: white;
    background: linear-gradient(135deg, #1C0153, #991C63, #FF5B48);
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px -10px rgba(153, 28, 99, 0.4);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTEgMWwyIDEgMS0ybC0xLTF6IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiAvPjwvc3ZnPg==');
    pointer-events: none;
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    object-fit: cover;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C0153;
}

.profile-hero-info {
    z-index: 2;
    flex: 1;
}

.profile-hero-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-hero-info p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 16px 0;
}

.profile-badges {
    display: flex;
    gap: 10px;
}

.profile-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Stats/KPIs Section */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.kpi-primary { background: linear-gradient(135deg, #1C0153 0%, #3a02a8 100%); color: white; }
.kpi-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.kpi-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.kpi-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }

.kpi-details h3 {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.kpi-details p {
    margin: 5px 0 0 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

/* Main Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Dashboard sidebar (Right Side Column) */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Centered Profile Card (Left Side) */
.profile-card-centered {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
}

.profile-info-rows {
    padding: 24px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-row .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-info-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

/* Dashboard Cards in Sidebar */
.dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 1px solid #f1f5f9;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Metrics Grid inside Sidebar */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}



.metric-tile:hover { transform: translateY(-2px); }

.metric-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.metric-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

/* Health Score Components */
.health-badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.progress-container {
    background: #f1f5f9;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

.health-item i {
    width: 20px;
    text-align: center;
}

.health-item.checked { color: #10b981; }
.health-item.checked i { color: #10b981; }
.health-item.warning { color: #f59e0b; }
.health-item.warning i { color: #f59e0b; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status--active { background: #dcfce7; color: #15803d; }
.status--inactive { background: #fee2e2; color: #b91c1c; }


.profile-section {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Activity Feed */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
}

.activity-text {
    flex: 1;
}

.activity-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1e293b;
}

.activity-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Documents Grid */
.doc-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.doc-mini-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.doc-mini-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.doc-mini-card i {
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.doc-mini-card.uploaded i {
    color: #10b981;
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    .profile-hero {
        flex-direction: column;
        text-align: center;
    }
}
