/* ==========================================================================
   Manzil360 User Dashboard Stylesheet (m360-dashboard.css)
   Class-based responsive layout for User Dashboard & Account Panels
   ========================================================================== */

.user-dashboard-container {
    max-width: 1280px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
}

.user-breadcrumb {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 20px;
}

.user-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.user-hero-card {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e293b 100%);
    border-radius: 16px;
    padding: 28px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.user-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.user-hero-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.user-hero-role-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-hero-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #cbd5e1;
}

.user-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-post-action {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-logout-action {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Stats Cards */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.user-stat-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.stat-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 4px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Color Themes */
.border-blue { border-left: 4px solid #2563eb; }
.border-green { border-left: 4px solid #059669; }
.border-pink { border-left: 4px solid #ec4899; }
.text-blue { color: #2563eb; }
.text-green { color: #059669; }
.text-pink { color: #ec4899; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #ecfdf5; color: #059669; }
.icon-pink { background: #fdf2f8; color: #ec4899; }

/* Dashboard Tabs */
.user-tabs-bar {
    display: flex;
    gap: 8px;
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.user-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.user-tab-btn:hover {
    color: #2563eb;
    background: #f8fafc;
}

.user-tab-btn.active {
   /* background: #2563eb;*/
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Agent Cards & Network */
.m360-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.m360-agent-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.m360-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.m360-agent-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0065ff 0%, #4338ca 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

.m360-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.m360-agent-meta-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Empty State Card */
.m360-empty-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
}

.m360-empty-icon {
    font-size: 50px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.m360-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.m360-empty-desc {
    color: #64748b;
    max-width: 450px;
    margin: 0 auto 20px;
    font-size: 14px;
}

/* Responsive Dashboard Breakpoints */
@media (max-width: 768px) {
    .user-dashboard-container {
        margin: 12px auto 40px auto;
        padding: 0 12px;
    }

    .user-hero-card {
        padding: 20px 16px;
    }

    .user-hero-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-hero-actions {
        width: 100%;
        margin-top: 10px;
    }

    .btn-post-action, .btn-logout-action {
        width: 100%;
        justify-content: center;
    }

    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .m360-agents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-stats-grid {
        grid-template-columns: 1fr;
    }

    .user-hero-name {
        font-size: 20px;
    }
}
